Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
mkdir builtin and $'\0'
On 21 Aug, Mikael Magnusson wrote:
> % mkdir /tmp/ホ
> % cd /tmp/ホ
While catching up on the mails, I didn't immediately spot the message
with the fix for this so instead tried to reproduce it. In the process,
I noticed an additional missing unmeta() in the fallback code used when
getcwd() returns NULL:
% rmdir $PWD
% pwd
/tmp/ャ»
Oliver
diff --git a/Src/compat.c b/Src/compat.c
index db46852..9041c0b 100644
--- a/Src/compat.c
+++ b/Src/compat.c
@@ -448,7 +448,7 @@ zgetcwd(void)
}
#endif /* HAVE_GETCWD */
if (!ret)
- ret = pwd;
+ ret = unmeta(pwd);
if (!ret)
ret = dupstring(".");
return ret;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author