# mount --bind /a/b /y/z
how do I find out if /y/z has been mounted to /a/b
in a bash script?
Check $? for any command result
--- news://freenews.netfront.net/ - complaints: ne...@netfront.net ---
i think it's the reverse
/a/b is now accessible as /y/z *AND* /a/b
or I'm just misreading
Maybe you could test mount | grep /y/z ?
Eg,
sudo mount --bind 123 mnt
mount | grep 123
shows
/home/jw/tmp/123 on /home/jw/tmp/mnt type none (rw,bind)
--
jiw