diff options
author | Jim Meyering <jim@meyering.net> | 2006-03-27 14:08:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-03-27 14:08:00 +0000 |
commit | ce88154fd8a00cbbe765e4721958e5b3d2dec5b2 (patch) | |
tree | f0ac4ad6c2c53b0ce3cd9affdbd0212f1d0639f2 /doc/coreutils.texi | |
parent | 120d34efe1118c234a15dd36e6aec29e846475fc (diff) | |
download | coreutils-ce88154fd8a00cbbe765e4721958e5b3d2dec5b2.tar.xz |
(dirname invocation): Macro in previous patch was too broad.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r-- | doc/coreutils.texi | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index b192984b6..85a652542 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -10599,14 +10599,14 @@ Together, @command{basename} and @command{dirname} are designed such that if @samp{ls "$name"} succeeds, then the command sequence @samp{cd "$(dirname "$name")"; ls "$(basename "$name")"} will, too. This works for everything except file names containing a trailing newline. +@end macro +@basenameAndDirname @acronym{POSIX} allows the implementation to define the results if @var{name} is empty or @samp{//}. In the former case, @acronym{GNU} @command{basename} returns the empty string. In the latter case, the result is @samp{//} on platforms where @var{//} is distinct from @var{/}, and @samp{/} on platforms where there is no difference. -@end macro -@basenameAndDirname The only options are @option{--help} and @option{--version}. @xref{Common options}. Options must precede operands. @@ -10644,6 +10644,11 @@ If @var{name} is a single component, @command{dirname} prints @samp{.} @basenameAndDirname +@acronym{POSIX} allows the implementation to define the results if +@var{name} is @samp{//}. With @acronym{GNU} @command{dirname}, the +result is @samp{//} on platforms where @var{//} is distinct from +@var{/}, and @samp{/} on platforms where there is no difference. + The only options are @option{--help} and @option{--version}. @xref{Common options}. |