[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: document AS_BASENAME
From: |
Stepan Kasal |
Subject: |
Re: document AS_BASENAME |
Date: |
Thu, 30 Mar 2006 20:14:27 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Thu, Mar 30, 2006 at 10:01:39AM -0800, Noah Misch wrote:
> On Thu, Mar 30, 2006 at 06:18:43PM +0200, Stepan Kasal wrote:
> > @example
> > ...
> > file=`AS_BASENAME(["$file"])` # This is more portable.
> > @end example
>
> With you adding an example to the documentation of AS_BASENAME, this example
> is
> now duplicative. Consider deleting it.
well, my point was that it's better to duplicate a one-line example then to use
a cross reference.
But you might be right: it might be better to delete the examples from the
descriptions of basename and dirname limitations.
What do others think?
> Some hosts lack `basename' (example?) or provide an implementation that
> mishandles `/' (Solaris). Use `AS_BASENAME' to portably extract the last
> component of a file name. Use `expr' to remove a suffix from a string.
Sounds good. No, I don't know which systems miss basename/dirname.
Could any of the other readers help us?
> [...] I think it's important that we somehow avoid creating a myth that
> some basename implementations lack support for suffix removal.
I agree. Thank you for catching this.
Have a nice day,
Stepan Kasal
- document AS_BASENAME, Eric Blake, 2006/03/22
- document AS_BASENAME, Eric Blake, 2006/03/27
- Re: document AS_BASENAME, Eric Blake, 2006/03/28
- Re: document AS_BASENAME, Paul Eggert, 2006/03/30
- Re: document AS_BASENAME, Paul Eggert, 2006/03/31
- Re: document AS_BASENAME, Ralf Wildenhues, 2006/03/31
- Re: document AS_BASENAME, Eric Blake, 2006/03/31
- Re: document AS_BASENAME, Paul Eggert, 2006/03/31
- Re: document AS_BASENAME, Stepan Kasal, 2006/03/31
- Re: document AS_BASENAME, Paul Eggert, 2006/03/31