* Possible hpux bug
@ 1996-08-08 16:43 Brady Montz
1996-08-08 18:53 ` Brady Montz
0 siblings, 1 reply; 2+ messages in thread
From: Brady Montz @ 1996-08-08 16:43 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Possible hpux bug
1996-08-08 16:43 Possible hpux bug Brady Montz
@ 1996-08-08 18:53 ` Brady Montz
0 siblings, 0 replies; 2+ messages in thread
From: Brady Montz @ 1996-08-08 18:53 UTC (permalink / raw)
To: zsh-workers
I just sent this mail:
Brady Montz <bradym@cs.arizona.edu> writes:
>
> 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
...
Sorry for this, but it turns out that I was running pre2 on the hpux machine.
How embarassing. I could swear that I checked $ZSH_VERSION, but you know
how that goes. Anyhow, it works fine now.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-08-08 19:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-08 16:43 Possible hpux bug Brady Montz
1996-08-08 18:53 ` Brady Montz
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).