autoconf
[Top][All Lists]
Advanced

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

Re: AS_DIRNAME


From: Eric Blake
Subject: Re: AS_DIRNAME
Date: Wed, 30 Sep 2009 05:20:38 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ralf Wildenhues on 9/29/2009 11:49 PM:
> Hello Peter,
> 
> * Peter Johansson wrote on Mon, Sep 28, 2009 at 11:24:51PM CEST:
>> Under weaknesses for `dirname' the manual (v2.64) mentions that one
>> should use macro AS_DIRNAME instead. The macro seems to do what I
>> want, but I cannot find it in the manual? Is it safe to use that
>> macro or should I consider it as an internal..?
> 
> I think we should document AS_DIRNAME, not doing so was probably an
> omission, esp. since it is mentioned a couple of times in the manual.

At one point it was documented.  Then later, we pulled the documentation,
since the interface is less than ideal (it doesn't handle trailing
newlines, although those are rare); a better interface would start
searching for shells that support the POSIX feature of ${var%/*}, so we
don't even have to fork to implement this on decent machines.

But yes, I agree that until we implement the better interface, we probably
ought to revive the documentation.

- --
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/

iEYEARECAAYFAkrDPwYACgkQ84KuGfSFAYDnTgCdH6gknXBbn/n9th7/FBkGnrP1
HSUAni6HZtnM1V6jqXsftSV1i+nIKVR8
=QLnK
-----END PGP SIGNATURE-----




reply via email to

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