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

exec -a and parameter expansion



Hi,

trying to write a script that sets argv[0] for a child process, I tried
using exec -a and noticed this difference:

% zsh -c 'exec -a $OSTYPE ps ax' |grep ax
 3755 pts/19   RN+    0:00 ?OSTYPE ax

% bash -c 'exec -a $OSTYPE ps ax' |grep ax
 3876 pts/19   RN+    0:00 linux-gnu ax

I expected the latter output for zsh too.  (And I can't explain the "?".)
Is this a bug?

Thanks,
-- 
Christian Neukirchen  <chneukirchen@xxxxxxxxx>  http://chneukirchen.org



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