Hi Mario, > Thanks a lot. As I understand it, $PWD and `pwd` don't produce the same > value on your system. Is it right?
Right. The attached script produces this output on my system: /tmp /tmp /tmp /tmp/tmp > Getting the current work directory is surprisingly hard (maybe not that > surprising). There's $PWD, the pwd shell builtin and the pwd executable > file (usually /bin/pwd or /usr/bin/pwd). Sometimes they don't produce > consistent results when the current work directory is a symlink or the > path to it contains a symlink. That's probably why this test breaks on > your system. Anyway $TEST_DIR and hence `pwd` (builtin or not) seems to work properly on all systems, so it looks a safer choice. > Does the path to the directory where you built and tested CHICKEN > contain a symlink? No. > What shell are you using? On Solaris 10 /bin/sh is a bourne shell (thus it has a builtin pwd much like the korn shell). Regards, Michele
pwd-test.sh
Description: Bourne shell script
_______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
