From: Jambunathan K <kjambunathan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 9480@debbugs.gnu.org, Antoine Levitt <antoine.levitt@gmail.com>
Subject: bug#9480: 24.0.50; (vc-git) stash@{n} - requires shell quoting?
Date: Tue, 13 Sep 2011 10:16:48 +0530 [thread overview]
Message-ID: <81pqj59hhj.fsf@gmail.com> (raw)
In-Reply-To: <E1R357z-0006qA-8e@fencepost.gnu.org> (Eli Zaretskii's message of "Mon, 12 Sep 2011 07:56:43 -0400")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Antoine Levitt <antoine.levitt@gmail.com>
>> 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
`----
next prev parent reply other threads:[~2011-09-13 4:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-12 7:09 bug#9480: 24.0.50; (vc-git) stash@{n} - requires shell quoting? Jambunathan K
2011-09-12 7:29 ` Eli Zaretskii
2011-09-12 9:05 ` Jambunathan K
2011-09-12 10:51 ` Eli Zaretskii
2011-09-12 11:22 ` Jambunathan K
2011-09-12 11:50 ` Antoine Levitt
2011-09-12 11:56 ` Eli Zaretskii
2011-09-13 4:46 ` Jambunathan K [this message]
2011-09-13 1:39 ` Richard Stallman
2011-09-13 4:03 ` Glenn Morris
2011-09-13 4:37 ` Eli Zaretskii
2011-09-13 5:14 ` Jambunathan K
2011-09-13 6:17 ` Jambunathan K
2011-09-13 6:54 ` Eli Zaretskii
2011-09-13 18:05 ` Stefan Monnier
2011-09-13 13:35 ` Stefan Monnier
2011-09-13 15:27 ` Eli Zaretskii
2011-09-13 18:21 ` Glenn Morris
2011-09-14 10:58 ` Jambunathan K
2011-09-14 11:57 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81pqj59hhj.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=9480@debbugs.gnu.org \
--cc=antoine.levitt@gmail.com \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).