GNU bug report logs - #9450
Bug report on 'dirname' : when jokers match several files

Previous Next

Package: coreutils;

Reported by: "Laurent TARRISSE" <ltarrisse <at> midilibre.com>

Date: Tue, 6 Sep 2011 14:03:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 9450-done <at> debbugs.gnu.org (full text, mbox):

From: "Laurent TARRISSE" <ltarrisse <at> midilibre.com>
To: "Paul Eggert" <eggert <at> cs.ucla.edu>
Cc: 9450-done <at> debbugs.gnu.org
Subject: Re: bug#9450: Bug report on 'dirname' : when jokers match several
	files
Date: Wed, 7 Sep 2011 16:48:52 +0200
----- Original Message ----- 
From: "Paul Eggert" <eggert <at> cs.ucla.edu>


> On 09/07/11 00:21, Laurent TARRISSE wrote:
>> The 'bug' appeared on Linux, because dirname doesn't output the path when
>> several arguments are passed to it. :)
>
> The same 'bug' will also appear on Solaris 10; its
> dirname does the same thing as GNU/Linux's dirname.
>
> I'm afraid you're fighting an uphill battle here.
> I'd fix the script rather than expecting
> other implementations to match HP-UX's quirks.
>
> I'm marking this as "done" since I don't expect
> the GNU/Linux version to change.

You are right. In fact, I do not expect any more that the
Linux version change, and I already fixed my script to
deal with this feature.
However, the advice given by an anonymous person
in the preceding email:

>Place some quotes around the argument, so that the variable will expand
>but the glob won't. Something like:
>MY_PATH=`dirname "$1"`
>will probably do what you expect.

worked perfectly    oo
Thanks to him (I cannot respond to him thus the 'sender email' is 
unreachable)
because 





This bug report was last modified 13 years and 340 days ago.

Previous Next


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