delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <1211729448 DOT 28588 DOT ezmlm AT cygwin DOT com> <3948f0730805252250q187cb485u25f5c87a0f73c395 AT mail DOT gmail DOT com> |
Subject: | RE: cygwin Digest 25 May 2008 15:30:48 -0000 Issue 5990 |
Date: | Mon, 26 May 2008 14:57:38 +0100 |
Message-ID: | <02fc01c8bf38$75426b20$2708a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <3948f0730805252250q187cb485u25f5c87a0f73c395@mail.gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
Gadi Oron wrote on 26 May 2008 06:50: > The fault is that executing > > /bin/sh -c "cd <dir>" > > will fail for <din> in the working folder unless it has a preceding "./" > > For example > > $ ls -d Code > Code/ > > $ /bin/sh -c "cd Code; pwd" > /bin/sh: line 0: cd: Code: No such file or directory > /home Doesn't reproduce for me: ~ $ mkdir Code ~ $ /bin/sh -c "cd Code; pwd" /home/dk/Code ~ $ > Since /bin/sh is a copy of bash, it seems that somehow my bash > misbehaves when runnning in sh compatibility mode. Different startup scripts get run. > What is strange that this only happens on one computer. On a second > box I use with the same version this is not happening. I'm wondering if there's something peculiar in one of the startup scripts on that box, or the environment. Do you have ENV set perhaps? Does adding the "-x" flag to your test case show anything interesting? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |