GNU bug report logs -
#15092
Dirname Bug
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15092 in the body.
You can then email your comments to 15092 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#15092
; Package
coreutils
.
(Wed, 14 Aug 2013 07:46:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Axel Spallek <axel <at> spallek.org>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 14 Aug 2013 07:46:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Dear Programmer,
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.
dirname (GNU coreutils) 8.13
Copyright © 2011 Free Software Foundation, Inc.
Lizenz GPLv3+: GNU GPL Version 3 oder höher
<http://gnu.org/licenses/gpl.html>
Dies ist freie Software: Sie können sie ändern und weitergeben.
Es gibt keinerlei Garantien, soweit wie es das Gesetz erlaubt.
Geschrieben von David MacKenzie und Jim Meyering.
--
Mit freundlichem Gruß,
Axel Spallek
Dipl.-Ing. FH IE
Hochdorfer Straße 34
88477 Schönebürg
Mobil: 01577 7929886
E-Mail: axel <at> spallek.org
Bankverbindung:
Volksbank Schwendi
KTO: 951 95 009
BLZ: 654 913 20
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#15092
; Package
coreutils
.
(Wed, 14 Aug 2013 09:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 15092 <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#15092
; Package
coreutils
.
(Wed, 14 Aug 2013 10:37:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 15092 <at> debbugs.gnu.org (full text, mbox):
tags 15092 notabug
close 15092
thanks
On 08/14/2013 11:45 AM, Erik Auerswald wrote:
> 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
> .
Another way would be to prefix it by a directory name,
either fully qualified, or just the current directory:
$ dirname "./--to-0040257282759-in.wav"
or
$ dirname "$(pwd)/--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.
Or told in another way: in your examples above, dirname(1) saw
the same string as argument in all 3 cases.
There's some help for this sort of misunderstanding in our FAQ:
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#How-do-I-remove-files-that-start-with-a-dash_003f
As this is not a bug in coreutils, I've marked it as such
and closed the bug.
Have a nice day,
Berny
Added tag(s) notabug.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Oct 2018 21:36:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
15092 <at> debbugs.gnu.org and Axel Spallek <axel <at> spallek.org>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Oct 2018 21:36:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 09 Nov 2018 12:24:09 GMT)
Full text and
rfc822 format available.
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.