[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Speed up progname, progpath setting
From: |
Eric Blake |
Subject: |
Re: Speed up progname, progpath setting |
Date: |
Wed, 09 Apr 2008 22:29:24 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Peter O'Gorman on 4/9/2008 10:19 PM:
|> What about eliminating (when progdir='.')
|> curwd=`cd . && pwd`
|>
|> Do we know when (with which shells) this can be replaced by $PWD
|> portably?
|
| The ones that are not buggy and comply with the standards? :) (I don't
| know, maybe all of them).
To some degree, it depends on whether you are okay with $PWD being logical
on platforms where pwd behaves like the posix 'pwd -P'; however, since
autoconf documents that you can't reliably expect either 'pwd -L' or 'pwd
- -P', you have to deal with both anyway. But I personally don't know how
likely you are to hit a shell that forgets to assign PWD.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkf9l6QACgkQ84KuGfSFAYB1cQCfbSg9VOLCutPYN3N64PrYgSWg
fF8AnRbBdPGsdSZrCA9xhro679+xuVku
=Ahjz
-----END PGP SIGNATURE-----
- Speed up progname, progpath setting, Ralf Wildenhues, 2008/04/09
- Re: Speed up progname, progpath setting, Peter O'Gorman, 2008/04/10
- Re: Speed up progname, progpath setting,
Eric Blake <=
- Re: Speed up progname, progpath setting, Peter O'Gorman, 2008/04/10
- Re: Speed up progname, progpath setting, Ralf Wildenhues, 2008/04/10
- Re: Speed up progname, progpath setting, Bob Friesenhahn, 2008/04/10
- Re: Speed up progname, progpath setting, Ralf Wildenhues, 2008/04/10
- Re: Speed up progname, progpath setting, Peter O'Gorman, 2008/04/11