Can some one explain why the following statement works on Linux but
fails on Solaris 11?

ksh -c 'redirect {n}<. ; cd / ; cd /dev/fd/$n ; /bin/pwd ; true'
will print the current cwd name on Linux.

But on Solaris 11 I'll get:
ksh[1]: cd: /dev/fd/10: [Not a directory]
/

Why?

Olga
-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to