emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#10342: closed (Bug Report for command "dirname")


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#10342: closed (Bug Report for command "dirname")
Date: Wed, 21 Dec 2011 18:09:02 +0000

Your message dated Wed, 21 Dec 2011 11:06:27 -0700
with message-id <address@hidden>
and subject line Re: bug#10342: Bug Report for command "dirname"
has caused the debbugs.gnu.org bug report #10342,
regarding Bug Report for command "dirname"
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
10342: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10342
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Bug Report for command "dirname" Date: Wed, 21 Dec 2011 11:27:55 -0500
Hello ,
Here is my case .
pwd : /test
ls -l  : Nothing within the directory !!
But when i tried using ----->   dirname xyz
it gave output as <.>   { output states , present directory ,but there
is not such filename/directory present within my test1 directory }
If it had stated no such directory ,it would have served my purpose .
Ignore : If i'm wrong or this bug is already cured .

When i tried using the option dirname
Regards
Ranjith Reddy Komanla
816-265-1232



--- End Message ---
--- Begin Message --- Subject: Re: bug#10342: Bug Report for command "dirname" Date: Wed, 21 Dec 2011 11:06:27 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0
tag 10342 notabug
thanks

On 12/21/2011 09:27 AM, RANJITH REDDY KOMANLA wrote:
> ls -l  : Nothing within the directory !!
> But when i tried using ----->   dirname xyz
> it gave output as <.>   { output states , present directory

This is the correct behavior.  It is required by POSIX - dirname is a
completely textual operation that pays no attention to what exists or
does not exist in your file system, and the dirname of a string that
resembles a relative file name is the string '.' (the current directory
is the correct dirname of a relative file name, if that relative name
was indeed a file; but the algorithm works even if there is no file by
that name).

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dirname.html

I'm closing this bug report, as there is no bug here.  However, feel
free to make further comments if you need more clarification, or help in
determining if 'dirname' really is the best fit for the shell scripting
task you were really attempting to solve.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]