Le 13/05/2013 20:47, Aaron Davies a écrit :
$ print ${.sh.version}
Version AJM 93u+ 2012-08-01
$ ls -d ../.tmp
../.tmp

-d does't mean ../.tmp is listed if it's a directory
it means don't expand the content of ../.tmp if it's a directory
so, in the current context, ../.tmp may or may not a directory
ls -lLd ../.tmp would be more reliable
-l for details
-L to expand softlinks
-d to not expand directory contents

$ cd ../.tmp
ksh: cd: /foo/tmp: [No such file or directory]

the answer is that ../.tmp isn't a directory
a permission problem would have raised EACCESS (Permission denied) and not ENOENT

Regards,

Cyrille Lefevre
--
mailto:[email protected]

_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to