autoconf-patches
[Top][All Lists]
Advanced

[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: Fri, 31 Mar 2006 10:57:09 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> Would you mind if I deleted this cross reference?

Not at all.  I deleted them, and also followed up on your other comment,
by installing this:

2006-03-31  Paul Eggert  <address@hidden>

        * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
        of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.

--- autoconf.texi       31 Mar 2006 06:08:36 -0000      1.975
+++ autoconf.texi       31 Mar 2006 18:55:43 -0000      1.976
@@ -9386,9 +9386,8 @@ that unfortunately are not portable in p
 @defmac AS_BASENAME (@var{file-name})
 @asindex{BASENAME}
 Output the non-directory portion of @var{file-name}.  For example,
address@hidden([/one/two/three])`} sets @code{file} to
address@hidden  @xref{Limitations of Usual Tools}, for why this is more
-portable than @command{file=`basename /one/two/three`}.
+if @code{$file} is @samp{/one/two/three}, the command
address@hidden(["$file"])`} sets @code{base} to @samp{three}.
 @end defmac
 
 @defmac AS_BOURNE_COMPATIBLE
@@ -9409,9 +9408,8 @@ corresponding pattern matched @var{word}
 @defmac AS_DIRNAME (@var{file-name})
 @asindex{DIRNAME}
 Output the directory portion of @var{file-name}.  For example,
address@hidden([/one/two/three])`} sets @code{file} to
address@hidden/one/two}.  @xref{Limitations of Usual Tools}, for why this is
-more portable than @command{file=`dirname /one/two/three`}.
+if @code{$file} is @samp{/one/two/three}, the command
address@hidden(["$file"])`} sets @code{dir} to @samp{/one/two}.
 @end defmac
 
 @defmac AS_IF (@var{test1}, @ovar{run-if-true1}, @dots{}, @ovar{run-if-false})




reply via email to

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