not haste I ran the root shell as "bash" instead of "sh" to confirm that both act similarly.Shep wrote: I think you have in haste simply duplicated the last part of the first example?
Yes; it needs .wh\* to find it when not in root shell. For some reason, in root shell '*' doesn't need to be escaped.Any idea why the behaviour is as you found it? The mystery has merely shifted focus.
Code: Select all
sudo find /initrd/pup_rw -mindepth 2 -type f -name .wh\*
/initrd/pup_rw/var/local/icons/.wh..wh..opq
/initrd/pup_rw/dev/usb/.wh.lp0
/initrd/pup_rw/etc/.wh.windowmanager.openbox
/initrd/pup_rw/etc/ssl/misc/.wh..wh..opq
/initrd/pup_rw/usr/lib/openoffice.org3/share/uno_packages/cache/uno_packages/.wh.SH1dMc_
/initrd/pup_rw/usr/lib/openoffice.org3/share/uno_packages/cache/uno_packages/.wh.SH1dMc
/initrd/pup_rw/usr/lib/engines/.wh..wh..opq
Shep wrote: The dot is not a wildcard to the shell, so escaping it with a backslash achieves nothing.