Skip to content

Commit 4539898

Browse files
Reject empty operand in cd built-in
Co-authored-by: WATANABE Yuki <[email protected]>
1 parent 5096d54 commit 4539898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ int change_directory(
12331233
assert(!logical || !ensure_pwd);
12341234

12351235
if (newpwd[0] == L'\0') {
1236-
xerror(0, Ngt("empty directory"));
1236+
xerror(0, Ngt("empty directory name"));
12371237
return 5;
12381238
}
12391239

0 commit comments

Comments
 (0)