Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
exec -a and parameter expansion
- X-seq: zsh-workers 28592
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: exec -a and parameter expansion
- Date: Fri, 07 Jan 2011 23:09:54 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=LXyhrYZ6EBVBS0hGuPK6PEyJBZIRA393HMlZEewL2uA=; b=m8f13Kk4afvUpj8tzw8zL0xCZoigVWn0v344YuRfEbJ66kEQ8yalZqX5/ufO4GqY1d JSoZ9Wl/NU5OqLKhPOpskL8bUQO8XlfOzunLckZNbcolQVfsZN+MZ8Pe2mTzfkkrCNFq /t50V0mfpSC8c/aX8vlH84jOgMlY9VD1wO4Q8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=XA7qTfwrxc5UjfB00iD9JHplWNFJ7uI8kpZmFIqlzvt+swPIbpprMLsCp5EfTTLQbK E1QdKyO0tJMFcViKTxSvwSxJqAV1hJZ+6V0UTtLABKlRfMcDEp9DyQZUIHoWp5PGUU9z fGaVRMw6XVcGHQi5dsBYGMKs53eIhvqtDDtwo=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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