You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(24) I tested zsh and mksh, and they return 126 here.
OK, I tried zsh, mksh and dash, and they all try to execute the directory. yash and bash detects the empty string. This is interesting. I tried more shells: posh, ksh and busybox sh try to execute the directory, and csh, tcsh and fish detects the empty string. Anyway, I think it's better to detect the empty string rather than trying to execute the directory.
I guess it's a special case.
The following cases may also be handled specially. I think one can just skip directory names in searching executable files from PATH. Directories are not executable even if the permission contains an executable flag.
OK, I tried
zsh
,mksh
anddash
, and they all try to execute the directory.yash
andbash
detects the empty string. This is interesting. I tried more shells:posh
,ksh
andbusybox sh
try to execute the directory, andcsh
,tcsh
andfish
detects the empty string. Anyway, I think it's better to detect the empty string rather than trying to execute the directory.The following cases may also be handled specially. I think one can just skip directory names in searching executable files from
PATH
. Directories are not executable even if the permission contains an executable flag.The text was updated successfully, but these errors were encountered: