Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 21 Aug 2005 01:57:47 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Unable to access forced mounts from /bin/sh Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/