chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available


From: Michele La Monaca
Subject: Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available
Date: Tue, 6 May 2014 17:39:32 +0200

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

Attachment: pwd-test.sh
Description: Bourne shell script


reply via email to

[Prev in Thread] Current Thread [Next in Thread]