Re: . .. mv & cd oddities

From: Andy Valencia From: <vandys_at_nospam.org>
Date: Tue Mar 02 2004 - 09:59:22 PST

"Paul Hepworth" <paul1+vsta@vpinc.biz> writes:

>I notice that ls .* doesn't show "." or ".."
>Bug or feature?

Feature. You can use them in your paths and path lookup will do the
right thing, but they don't necessarily correspond to a "real" node in
a filesystem, so I didn't synthesize their presence in the directory
traversal routines.

>Also, there's a bug (or undesirable restriction) in mv:
>mkdir bar
>touch foo
>mv foo bar
>It's gone!
>(mv foo bar/foo would have worked)
>Is this known? Any plan to fix it? Or should I?

As always, you're welcome to have a go at it!

>Odd behavior with cd:
>$ pwd
>/vsta/src/bin
>$ ls tmp
>tmp: no entry
>$ cd tmp # expected to fail but didn't
>$ pwd
>/vsta/root/tmp
>Bug or feature?

What's your CDPATH set to?

Andy
Received on 2 Mar 2004 17:59:22 GMT

This archive was generated by hypermail 2.1.8 : Tue Sep 26 2006 - 09:03:07 PDT