From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#9480: 24.0.50; (vc-git) stash@{n} - requires shell quoting? Date: Tue, 13 Sep 2011 10:16:48 +0530 Message-ID: <81pqj59hhj.fsf@gmail.com> References: <81sjo2fd8o.fsf@gmail.com> <81d3f6t9jn.fsf@gmail.com> <81d3f680oc.fsf@gmail.com> <874o0iq8rj.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315889269 20140 80.91.229.12 (13 Sep 2011 04:47:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2011 04:47:49 +0000 (UTC) Cc: 9480@debbugs.gnu.org, Antoine Levitt To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 13 06:47:44 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3KuN-0002xf-Nw for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 06:47:44 +0200 Original-Received: from localhost ([::1]:42965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3KuN-00054s-2n for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2011 00:47:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3KuJ-00054a-7n for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 00:47:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3KuI-0005jn-82 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 00:47:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3KuI-0005jg-2V for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2011 00:47:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R3KyY-0001a6-D4; Tue, 13 Sep 2011 00:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2011 04:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9480 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9480-submit@debbugs.gnu.org id=B9480.13158894996049 (code B ref 9480); Tue, 13 Sep 2011 04:52:02 +0000 Original-Received: (at 9480) by debbugs.gnu.org; 13 Sep 2011 04:51:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3KyB-0001ZW-DG for submit@debbugs.gnu.org; Tue, 13 Sep 2011 00:51:39 -0400 Original-Received: from mail-pz0-f47.google.com ([209.85.210.47]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R3Ky8-0001ZO-Qs for 9480@debbugs.gnu.org; Tue, 13 Sep 2011 00:51:37 -0400 Original-Received: by pzk2 with SMTP id 2so246026pzk.20 for <9480@debbugs.gnu.org>; Mon, 12 Sep 2011 21:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ZnVhjWMgxHdsvmn9Iu6QWDNqzq6pldq868gaeW4ZOLE=; b=MBq7NPnm4VSCOmcK9h3YM1jJiwVgNgH3WZyIT6PJGKwxwmEt2QBmd0v1qkDupMGmuN c7x1x/F3B+ESw592JHox4X6ZLRpe0/O652iE10vCbxx/SD+R/3KE0f7rV6gs3c43mPfY RJgmJvx7ihz2smKh2QMMN2NWefvU1wjpcfk8I= Original-Received: by 10.68.0.225 with SMTP id 1mr110280pbh.30.1315889231001; Mon, 12 Sep 2011 21:47:11 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.184.58.42]) by mx.google.com with ESMTPS id i4sm2056554pbr.4.2011.09.12.21.47.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Sep 2011 21:47:10 -0700 (PDT) In-Reply-To: (Eli Zaretskii's message of "Mon, 12 Sep 2011 07:56:43 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Sep 2011 00:52:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51086 Archived-At: Eli Zaretskii writes: >> From: Antoine Levitt >> Date: Mon, 12 Sep 2011 13:50:56 +0200 >> >> 12/09/11 13:22, Jambunathan K >> >> Yes, I see the problem, but now I wonder how come users of Posix >> >> platforms didn't see it. Does it happen if your shell-file-name is >> >> set to "sh", not "bash" (assuming the Cygwin Bash comes with such an >> >> executable or a link)? >> > >> > sh and bash are apparently one and the same executable. >> >> Bash runs in sh compatibility mode when invoked with "sh". From man bash: >> >> If bash is invoked with the name sh, it tries to mimic the >> startup behavior of historical versions of sh as closely as >> possible, while conforming to the POSIX standard as well. > > Right. So results could be different, even though it's the same > binary. Jambunathan, please try that if you can. The reported problem persists even if I run with emacs -Q and for ALL THREE settings of shell-file-name 1. The default value - cmdproxy.exe 2. (setq shell-file-name "sh") 3. (setq shell-file-name "bash") *vc-dir* correctly reports modified files in my work area correctly for ALL the above settings. side note: My "shell quoting" changes produces the expected behaviour in case of 2 and 3. But fails for scenario 1. ps: I see that my remark about sh.exe and bash.exe being same has produced some confusion. What I meant was sh.exe and bash.exe are DIFFERENT EXECUTABLE FILES (in physical sense) but with the SAME CONTENT. ,---- | $ ls -al *sh.exe | -rwxr-xr-x 2 kjambunathan root 82446 2010-06-30 04:18 ash.exe | -rwxr-xr-x 1 kjambunathan root 470542 2010-08-13 22:28 bash.exe | -rwxr-xr-x 2 kjambunathan root 82446 2010-06-30 04:18 dash.exe | -rwxr-xr-x 1 kjambunathan root 8718 2010-02-11 13:25 ppmflash.exe | -rwxr-xr-x 1 kjambunathan root 470542 2010-08-13 22:28 sh.exe | -rwxr-xr-x 1 kjambunathan root 342030 2010-09-03 14:14 ssh.exe | lrwxrwxrwx 1 kjambunathan root 11 2011-03-16 14:31 tclsh.exe -> tclsh84.exe | lrwxrwxrwx 1 kjambunathan root 10 2011-03-16 14:31 wish.exe -> wish84.exe `----