Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: EXEC peculiarities
- X-seq: zsh-users 7849
- From: Georg Neis <georg@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: EXEC peculiarities
- Date: Sun, 15 Aug 2004 16:16:25 -0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <46981.217.160.254.91.1092582879.squirrel@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
* 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