[Top][All Lists]

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

Re: document AS_BASENAME

From: Paul Eggert
Subject: Re: document AS_BASENAME
Date: Wed, 29 Mar 2006 22:47:14 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

address@hidden (Eric Blake) writes:

> But looking at the source to AS_BASENAME, even recent Solaris
> mishandles "basename /" with an empty line instead of "/".
> However, I just noticed that AS_BASENAME does not do suffix
> stripping (such as "AS_BASENAME([foo.c], [.c])" expanding to
> "foo"), so I have the bigger task of actually implementing that
> portably in m4sh before this patch can be applied.

I'm not sure I'd worry about either of these issues all that much, to
be honest.  To remove a suffix one should use expr, not basename.  And
the practical importance of "basename /" is pretty small.

reply via email to

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