ls -A

David C Lawrence tale at pawl.rpi.edu
Sun Oct 8 05:14:35 AEST 1989


In <1245 at virtech.UUCP> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
Conor> The shell glob function must match the default operation of the
Conor> directory lister otherwise you will remove files that you are
Conor> not aware you are removing.  Once the decision was made on the
Conor> directory lister, there was no real choice on the shell
Conor> globber.

So you're saying then that the shell glob functions in a BSD universe
should check for uid 0 and expand * to all non-`.' and `..' entries in a
directory?  It doesn't:

rpi# ls
.cshrc      .newsrc     bin.server  lib         src
.forward    .nn         bin.sun3    man
.login      README      etc         spool
rpi# echo *
README bin.server bin.sun3 etc lib man spool src
rpi# which ls
/bin/ls

Darn those broken shells.  (To be fair, Conor didn't comment on
whether ls -A for root is "the right thing", but it does not have the
consistency he addressed in the article.)

Dave
-- 
 (setq mail '("tale at pawl.rpi.edu" "tale at itsgw.rpi.edu" "tale at rpitsmts.bitnet"))



More information about the Comp.unix.wizards mailing list