Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Positional parameters and sourced files
- X-seq: zsh-workers 11612
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Bernd Eggink <eggink@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Positional parameters and sourced files
- Date: Sun, 28 May 2000 17:16:28 +0000
- In-reply-to: <20000528111017.B392@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <1000528003111.ZM22806@xxxxxxxxxxxxxxxxxxxxxxx> <20000528111017.B392@xxxxxxxxxxxxxxxxxxxxxxxxxx>
On May 28, 11:10am, Bernd Eggink wrote:
} Subject: Re: Positional parameters and sourced files
}
} ksh behaves the same way as zsh.
That's probably -why- zsh behaves that way, then.
} IMHO the bash behavior is the most reasonable one.
I think they're both strange. Look at what happens to zsh scripts when
you put a `set a b c d e' in /etc/zshenv. (Bash doesn't have that problem
because it has no init scripts that are run for non-interactive shells,
but the principle is the same.)
The positionals should be local, always. Unfortunately that probably
breaks some expectation of old Bourne shell scripts, or some such.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author