brucee@runx.ips.oz (Bruce Evans) (12/17/88)
rmdir ../dirname starts removing "." when it shouldn't. The following shell
script demonstrates the bug.
cd /tmp
mkdir q # make a test directory for safety
cd q
mkdir qq qr # some junk directories
cd qq
>qqq # a junk file
rmdir ../qr # this seems to try to remove "." and fails
ls # fails since "." has been removed from /tmp/q/qq
# cd .. # fails since ".." has been removed from /tmp/q/qq
# last line is commented out since it causes the
# shell itself to exit - another bug?
cd /tmp/q
ls qq/* # fails
ls qq # works
rm qq/* # fails
rm qq/qqq # works - bug is not fatal since explicitly named files
# can be copied to safety
cd /tmp
rmdir q/qq q/qr q # clean up
Bruce Evans
Internet: brucee@runx.ips.oz.au UUCP: uunet!runx.ips.oz.au!brucee
rtregn@immd3.informatik.uni-erlangen.de (Robert Regn) (12/20/88)
In article <1878@runx.ips.oz>, brucee@runx.ips.oz (Bruce Evans) writes: > > rmdir ../dirname starts removing "." when it shouldn't. The following shell > script demonstrates the bug. [....] The problem is caused by the procedure patch_path which was added to rmdir in the version 1.2. It strips ../qr/.. to .. What was the intention behind path_path and who has it added ??? Robert Regn\ rtregn@faui32.uucp\ rtregn@immd3.informatik.uni-erlangen.de