delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/21/01:57:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Unable to access forced mounts from /bin/sh
Message-ID: <Pine.GSO.4.61.0508210147050.16057@slinky.cs.nyu.edu>
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019