zsh-workers
 help / color / mirror / code / Atom feed
* exec -a and parameter expansion
@ 2011-01-07 22:09 Christian Neukirchen
  2011-01-07 22:56 ` Phil Pennock
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Neukirchen @ 2011-01-07 22:09 UTC (permalink / raw)
  To: zsh-workers

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@gmail.com>  http://chneukirchen.org


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

end of thread, other threads:[~2011-01-09  1:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 22:09 exec -a and parameter expansion Christian Neukirchen
2011-01-07 22:56 ` Phil Pennock
2011-01-08  2:17   ` Bart Schaefer
2011-01-08  2:32     ` Bart Schaefer
2011-01-08 21:52     ` Peter Stephenson
2011-01-08 22:29       ` Peter Stephenson
2011-01-09  1:18         ` Bart Schaefer

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