Solaris chdir("name") does not work for /dev/fd. I (or Roland) have to
find a workaround for this... ;-(Olga On Wed, Jun 20, 2012 at 5:56 AM, ольга крыжановская <[email protected]> wrote: > 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 /\/\ > `--` `--` -- , _ _ , { \/`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
