about summary refs log tree commit diff
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
parentb411dc570217f337540c018f82797f248ec81754 (diff)
downloadzsh-98b4d4bdca15393d3cce9e072867ee6526de5d2e.tar.gz
zsh-98b4d4bdca15393d3cce9e072867ee6526de5d2e.tar.xz
zsh-98b4d4bdca15393d3cce9e072867ee6526de5d2e.zip
51632: nmetafy $_ when exporting it to child
-rw-r--r--ChangeLog4
-rw-r--r--Src/exec.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 851c7e3ce..1eebe2660 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-04-09  Jun-ichi Takimoto  <takimoto-j@kba.biglobe.ne.jp>
+
+	* 51632: Src/exec.c: unmetafy $_ when exporting it to child
+
 2023-04-03  Jun-ichi Takimoto  <takimoto-j@kba.biglobe.ne.jp>
 
 	* 51597: Src/Zle/zle_utils.c: fix 'vared -c var' when var is unset
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();