zsh-users
 help / color / mirror / code / Atom feed
* EXEC peculiarities
@ 2004-08-15 15:14 Jay Guerette
  2004-08-15 16:16 ` Georg Neis
  0 siblings, 1 reply; 5+ messages in thread
From: Jay Guerette @ 2004-08-15 15:14 UTC (permalink / raw)
  To: zsh-users

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

Am I doing something wrong? Why does the 2nd example fail?




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-15 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-15 15:14 EXEC peculiarities Jay Guerette
2004-08-15 16:16 ` Georg Neis
2004-08-15 17:24   ` Jay Guerette
2004-08-15 18:02     ` Wayne Davison
2004-08-15 19:12       ` Jay Guerette

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).