all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: shell-command parameters
Date: Tue, 06 Jan 2009 07:29:37 -0700	[thread overview]
Message-ID: <gjvprl$nfn$1@ger.gmane.org> (raw)
In-Reply-To: <72a44850-9df5-44f2-99d4-5aa90b48c15d@w1g2000prm.googlegroups.com>

rustom wrote:
> On Jan 6, 9:05 am, Eli Zaretskii <e...@gnu.org> wrote:
>>> From: Chetan <Chetan.xs...@xspam.sbcglobal.net>
>>> Date: Mon, 05 Jan 2009 13:40:27 -0800
>>>> On Windows, if you want 2 commands on a single line, use `&' instead
>>>> of `;', as in
>>>>    echo 1 2 3 & echo 4 5
>>> Or
>>> echo 1 2 3 && echo 4 5 and get the same result everywhere
>> The semantics of ;/& and && is not the same.  With `echo', the
>> difference hardly matters, but in general, the former will always run
>> both commands, while the latter will sometimes only run the first one.
> 
> Thanks.
> 
> I guess mostly one needs cmd1 && cmd2.  And the unix equivalent of
> cmd1 ; cmd2 is cmd1 & cmd2.
> 
> But I still wonder what shell is running in windows emacs?

,----[ C-h v shell-file-name RET ]
| shell-file-name is a variable defined in `src/callproc.c'.
| Its value is "/bin/bash"
|
|
| Documentation:
| *File name to load inferior shells from.
| Initialized from the SHELL environment variable, or to a system-dependent
| default if SHELL is not set.
|
| You can customize this variable.
|
| [back]
`----

Looking at callproc.c, the system-dependent default is "/bin/sh".

-- 
Kevin Rodgers
Denver, Colorado, USA





  reply	other threads:[~2009-01-06 14:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-05 11:11 shell-command parameters rustom
2009-01-05 13:35 ` Chetan
2009-01-05 14:07   ` Peter Dyballa
2009-01-05 20:15   ` Eli Zaretskii
     [not found]   ` <mailman.4046.1231186569.26697.help-gnu-emacs@gnu.org>
2009-01-05 21:40     ` Chetan
2009-01-06  4:05       ` Eli Zaretskii
     [not found]       ` <mailman.4079.1231214715.26697.help-gnu-emacs@gnu.org>
2009-01-06  7:33         ` rustom
2009-01-06 14:29           ` Kevin Rodgers [this message]
     [not found]           ` <mailman.4120.1231252170.26697.help-gnu-emacs@gnu.org>
2009-01-06 15:02             ` rustom
2009-01-06 15:45               ` Andreas Politz
2009-01-06 20:40               ` Eli Zaretskii
2009-01-08  5:50               ` Barry Margolin

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gjvprl$nfn$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.