summaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-04-09 20:33:32 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-04-09 20:33:32 +0900
commit98b4d4bdca15393d3cce9e072867ee6526de5d2e (patch)
tree9044ae6212ce79d00d9d9ed3241e7be29c7051f0 /Src
parentb411dc570217f337540c018f82797f248ec81754 (diff)
downloadzsh-98b4d4bdca15393d3cce9e072867ee6526de5d2e.tar.gz
zsh-98b4d4bdca15393d3cce9e072867ee6526de5d2e.zip
51632: nmetafy $_ when exporting it to child
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 4328975b9..3b3d1235e 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -519,7 +519,7 @@ zexecve(char *pth, char **argv, char **newenvp)
if (*pth == '/')
strcpy(buf + 2, pth);
else
- sprintf(buf + 2, "%s/%s", pwd, pth);
+ sprintf(buf + 2, "%s/%s", unmeta(pwd), pth);
zputenv(buf);
#ifndef FD_CLOEXEC
closedumps();