[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
pwd-test.sh
Description: Bourne shell script
- Re: [Chicken-users] CHICKEN 4.9.0rc1 is available, Michele La Monaca, 2014/05/04
- Re: [Chicken-users] CHICKEN 4.9.0rc1 is available, Peter Bex, 2014/05/05
- Re: [Chicken-users] CHICKEN 4.9.0rc1 is available, Michele La Monaca, 2014/05/06
- Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available, Mario Domenech Goulart, 2014/05/06
- Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available, John Cowan, 2014/05/06
- Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available,
Michele La Monaca <=
- Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available, Mario Domenech Goulart, 2014/05/06
- Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available, Peter Bex, 2014/05/07
- Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available, Michele La Monaca, 2014/05/07
- Re: [Chicken-users] [Chicken-hackers] CHICKEN 4.9.0rc1 is available, Peter Bex, 2014/05/08