GNU bug report logs - #15092
Dirname Bug

Previous Next

Package: coreutils;

Reported by: Axel Spallek <axel <at> spallek.org>

Date: Wed, 14 Aug 2013 07:46:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 15092 <at> debbugs.gnu.org (full text, mbox):

From: Erik Auerswald <auerswal <at> unix-ag.uni-kl.de>
To: Axel Spallek <axel <at> spallek.org>
Cc: 15092 <at> debbugs.gnu.org
Subject: Re: bug#15092: Dirname Bug
Date: Wed, 14 Aug 2013 11:45:58 +0200
Hello Axel,

On Wed, Aug 14, 2013 at 09:16:14AM +0200, Axel Spallek wrote:
> the following throw errors:
>
> dirname --to-0040257282759-in.wav
> dirname "--to-0040257282759-in.wav"
> dirname '--to-0040257282759-in.wav'
>
> IMHO at least the last two ones schould work.

If the arguments to a program start with a - or --, they are assumed to be
options. You can use -- to stop option processing:

$ dirname -- --to-0040257282759-in.wav
.

Quoting the arguments as in your last two examples does not affect this, as
the shell does not interpret leading - characters in the command line, the
program called does.

HTH,
Erik




This bug report was last modified 6 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.