[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $(pwd) != $(/bin/pwd)
From: |
Chet Ramey |
Subject: |
Re: $(pwd) != $(/bin/pwd) |
Date: |
Tue, 5 Jan 2010 16:40:50 -0500 |
> Well, if I read
> http://www.opengroup.org/onlinepubs/9699919799/utilities/pwd.html
> correctly, bash pwd should output /home/darkk/bar in that case
> as $PWD does *not* contain an absolute path to the current
> directory.
Bash notices this when running in posix mode, and recanonicalizes the
pathname. By default, it does not.
> Having said that, ksh93, ash and zsh behave like bash, pdksh and
> its derivatives being the only ones that behave as POSIX
> requires.
Bash behaves as Posix requires when running in posix mode. When it's not,
it does the same thing as other shells.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- $(pwd) != $(/bin/pwd), Leonid Evdokimov, 2010/01/03
- Re: $(pwd) != $(/bin/pwd), Chet Ramey, 2010/01/03
- Message not available
- Re: $(pwd) != $(/bin/pwd), Stephane CHAZELAS, 2010/01/05
- Re: $(pwd) != $(/bin/pwd), Greg Wooledge, 2010/01/05
- Re: $(pwd) != $(/bin/pwd), Andreas Schwab, 2010/01/05
- Re: $(pwd) != $(/bin/pwd), Stephane CHAZELAS, 2010/01/05
- Re: $(pwd) != $(/bin/pwd), Ken Irving, 2010/01/05
- Re: $(pwd) != $(/bin/pwd),
Chet Ramey <=
- Re: $(pwd) != $(/bin/pwd), Stephane CHAZELAS, 2010/01/06
- Re: $(pwd) != $(/bin/pwd), Chet Ramey, 2010/01/06
- Re: $(pwd) != $(/bin/pwd), Marc Herbert, 2010/01/07