ls -A
Conor P. Cahill
cpcahil at virtech.UUCP
Sat Oct 7 23:08:58 AEST 1989
In article <1989Oct7.032907.27496 at rpi.edu>, tale at pawl.rpi.edu (David C Lawrence) writes:
> In <1989Oct6.201107.9465 at eci386.uucp> jmm at eci386.uucp (John Macdonald) writes:
> John> Like all things, treating .* files specially has advantages and
> John> disadvantages. Some form of special treatment *was* necessary -
> John> otherwise "rm *" would remove "." and ".."!
>
> No it wouldn't. rm already does special treatment of `.' and `..'.
> Some form of special treatment by shell expansion of * wasn't
> "necessary" at all.
It might not have been necessary, but it was a design decision that had to
be made and I, for one, like it. Others may not like it, but that always
happens with design decisions.
I know that I can see all of the files that begin with a . if I want
to, but most of the time I don't want to see them and dont have to.
The shell glob function must match the default operation of the directory
lister otherwise you will remove files that you are not aware you are
removing. Once the decision was made on the directory lister, there was
no real choice on the shell globber.
PS -> I'm not sure which decision was made first (dir lister or shell globber)
but the two must agree.
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.unix.wizards
mailing list