Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: sourcing a sh file in zsh



On Sun, Jan 25, 2009 at 00:11, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

>    emulate sh -c 'source file.sh'

While a command and eval are not the same, -c might make more
sense as it's more natural to read.


> (2) is a nit.  Mainly it affects whether emulate accepts only one argument
> to be eval'd.

  emulate sh -c 'foo' -c 'bar'

might be an option, but I wonder if people would use that.


Richard

PS: Having `emulate` return the current emulation mode is a neat idea.



Messages sorted by: Reverse Date, Date, Thread, Author