Re: bug: basename 2.0 (win32/cygwin)

Jim Meyering <[email protected]> Thu, 12 Dec 2002 17:06:53 +0100
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Jari Vuoksenranta <[email protected]> wrote:
> bug:
> "
> $  f="/mnt/w/w/Apache\ Group/Apache2/logs/error.log"  # <- "apache\{space}/"
> $ basename $f
> Apache\
> "
> also

Thanks for the report, but that's not a bug.
In the above example, you should double-quote the argument to basename:

  $ basename "$f"