bug-coreutils
[Top][All Lists]
Advanced

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

bug#13635: Strange ls bug (Combination of -a and --color)


From: Joshua Rogers
Subject: bug#13635: Strange ls bug (Combination of -a and --color)
Date: Wed, 06 Feb 2013 18:55:49 +1100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

Hi,

I'm using 'ls' and I'm encountering a pretty strange bug.

I just rsync'd my remote server for backup, and on my local machine I
run the command 'ls -lh csf/'
Well.. Here's the result;

$ ls -lh csf/
ls: cannot access csf/.: Permission denied
ls: cannot access csf/..: Permission denied
total 0
d????????? ? ? ? ?                ? .
d????????? ? ? ? ?                ? ..


running just 'ls csf/'
$ ls csf/
ls: cannot access csf/.: Permission denied
ls: cannot access csf/..: Permission denied
.  ..


It appears to be outputting the information, even though it should be
exiting after it says permission denied.

I've tried rm -rf csf/ and re-rsyncing it, but the problem persists.


My .bashrc;
    alias ls='ls -aC --color=auto'


Running '/bin/ls csf/'
just results in a newline.

running '/bin/ls -aC' doesn't cause the error, neither does '/bin/ls -C
--color=auto csf/'
But, '/bin/ls -a --color=auto csf/' DOES.
So it seems to be the combination of --color and -a.

Thanks


-- 
*Joshua Rogers* - Retro Game Collector && IT Security Specialist
gpg pubkey <http://www.internot.info/docs/gpg_pubkey.asc.gpg>


reply via email to

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