Unable to access forced mounts from /bin/sh
Igor Pechtchanski
pechtcha@cs.nyu.edu
Sun Aug 21 05:57:00 GMT 2005
Here's something weird. I don't know whether this is a problem with the
latest Cygwin, or bash:
$ /bin/mount -f -u c:/ /a/b
$ /bin/sh -c 'cd /a/b && /bin/ls | head -1'
sh: line 0: cd: /a/b: No such file or directory
$ /bin/bash -c 'cd /a/b && /bin/ls | head -1'
AUTOEXEC.BAT
$
Some system info:
$ /bin/uname -svr
CYGWIN_NT-5.1 1.5.18(0.132/4/2) 2005-07-02 20:30
$ /bin/bash --version
GNU bash, version 3.00.16(11)-release (i686-pc-cygwin)
Copyright (C) 2004 Free Software Foundation, Inc.
$ /bin/sh --version
GNU bash, version 3.00.16(11)-release (i686-pc-cygwin)
Copyright (C) 2004 Free Software Foundation, Inc.
$ /bin/cmp /bin/bash.exe /bin/sh.exe && echo same
same
Huh? Strace shows that sh fails when trying to stat /a. Does this,
perhaps, have something to do with bash switching to POSIX mode when
invoked as "sh"?
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list