Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
`exec env -i OLDPWD=$OLDPWD zsh` doesn't work
- X-seq: zsh-users 22360
- From: Timothee Cour <timothee.cour2@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: `exec env -i OLDPWD=$OLDPWD zsh` doesn't work
- Date: Fri, 13 Jan 2017 01:15:27 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9WN/c4nunYcU42ISi1iXGw1iplBltaF80hOPmL3mb2M=; b=teLONjOA2IGdPogtV27pfpdwItSE6QXhE8T3sz4k/t4HfmBDfKxlfnjmNC4XB9fFg8 nQEWurHTjhdr9PHfGS/cUxXCZbuvdByDJMpT0NIP6k1IIALG3ulRaXm2J8s+5CZeT6XF 5SmLC9ZkGOpvR9HA0jG6ma4GCbkz+JD+2Aa44T7+Nwy0UBJ0WYVUtmWJI3UEJ63gBsNP 2XH24gAFWQvUuWc1CTv5GDVMMXt9cyZO24rA77N5LOqtd+1j2Hgzla7UQAuUaSW8T2E6 c4YAKPH4lfMxXw0q2aNc3I7/uu7XLIW9VrRRT3nqVRwcTDEU0DDO008W6UBWYYewFdIn RMvg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
how do i exec while passing OLDPWD?
related [but for bash]:
http://unix.stackexchange.com/questions/242909/why-does-bash-clear-oldpwd-when-a-child-script-is-started
QUOTE: It seems reasonable to inherit OLDPWD if it names a directory, in
the same way that the shell inherits PWD if it names the current directory,
so we'll try that for the next bash version.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author