in reply to Re^2: Cleaning up a path
in thread Cleaning up a path
/foo/.. -> / <- Fixed /foo/../bar -> /bar <- Still works foo/.. -> <- Should be . (?) foo/../bar -> bar <- Still works .. -> <- Should be .. ../foo -> foo <- Should be ../foo ../foo/bar -> foo/bar <- Should be ../foo/bar foo/bar/../.. -> <- Should be . (?) /foo/bar/../.. -> / <- Fixed /foo/bar/../../moo -> /moo <- Still works {...}/etc/passwd -> /etc/passwd <- Still works
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Cleaning up a path
by polettix (Vicar) on Apr 13, 2005 at 18:14 UTC | |
by ikegami (Patriarch) on Apr 13, 2005 at 18:28 UTC |