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

Re: EXEC peculiarities



* Jay Guerette <JayGuerette@xxxxxxxxx> wrote:
> I am a recent convert from Bash, and I'm confused about the behavior of
> the 'exec' builtin. (zsh 4.2.0 on Linux)
> 
> #! /bin/bash
> EXEC='/sbin/ifconfig eth0'
> exec $EXEC
> 
> returns the expected output; the configuration of eth0
> 
> #! /bin/zsh
> EXEC='/sbin/ifconfig eth0'
> exec $EXEC
> 
> returns: "no such file or directory: /sbin/ifconfig eth0"
> 
> #! /bin/zsh
> EXEC='/sbin/ifconfig'
> ARGS='eth0'
> exec $EXEC $ARGS
> 
> however, again works as expected

The exec builtin has nothing to do with this.

http://zsh.sunsite.dk/FAQ/zshfaq03.html#l17

Georg
-- 
Tomorrow will be cancelled due to lack of interest.



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