zsh-workers
 help / color / mirror / code / Atom feed
From: Brady Montz <bradym@cs.arizona.edu>
To: zsh-workers@math.gatech.edu
Subject: Possible hpux bug
Date: Thu, 8 Aug 1996 09:43:23 -0700 (MST)	[thread overview]
Message-ID: <199608081643.JAA26608@mahler.cs.arizona.edu> (raw)

This problem only appears in hpux 9.01. It doesn't happen on linux,
solaris, or OSF1. I'm running 3.0pre6 on all those machines.

If I enter at the prompt:

source file

everything's happy. If, however, I do:

func()
{
  source file
}
func

Then I get a bunch of blank lines on the screen as the file gets
sourced. The number of blank lines seems to be roughly the number of zsh
commands in the file, not the number of lines in the file. To partially
rule out silliness on my part, this also happens when I remove all my zsh
startup files and log in, so zsh is only running on its internal
defaults. Is this a (known) bug, or am I just missing something?

For the curious, here's where this arose:

In an effort to polish off the portability of my dotfiles (since they have
to work on 4 different architectures and 6 differene OS's now), I wrote this
following function:

source_files() {
        basefile=$HOME/init/$1/$2
        if [ -f $basefile ]
        then
                source $basefile
        fi
        if [ -f $basefile.$ARCH ]
        then
                source $basefile.$ARCH
        fi 
        if [ -f $basefile.$SYSTEM ]
        then
                source $basefile.$SYSTEM
        fi 
        if [ -f $basefile.$ARCH.$SYSTEM ]
        then
                source $basefile.$ARCH.$SYSTEM
        fi
}

I keep my bourne family shell files in ~/init/bourne, and I keep the files in
my home directory machine independent, and then I stick a "source_files bourne
env" say into my .zprofile and it goes and finds all the ~/init/bourne/env.*
files that apply to the current machine and sources them.

bradym@cs.arizona.edu


             reply	other threads:[~1996-08-08 16:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-08 16:43 Brady Montz [this message]
1996-08-08 18:53 ` Brady Montz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199608081643.JAA26608@mahler.cs.arizona.edu \
    --to=bradym@cs.arizona.edu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).