* Shell invoked via shell-file-name
@ 2011-04-09 3:29 Christoph Scholtes
2011-04-09 16:21 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Scholtes @ 2011-04-09 3:29 UTC (permalink / raw
To: emacs-devel
Is there a way to invoke a shell via `shell-file-name' with additional
command line parameters?
I am trying to use cygwin for certain things on a Windows system, for
example mercurial, ruby or ack. Ruby works fine since there is an
executable (*.exe) that Emacs finds on the exec-path (or PATH) and
executes, but mercurial (hg) is just a Python script and ack just a Perl
script. They need the shell to invoke the correct interpreter.
I can call, for example, ack correctly from Windows cmd.exe like this:
C:\>cywgin\bin\bash -l -c ack
whereas
C:\>cygwin\bin\bash -c ack
does not work
cygwin/bin/bash: ack: command not found
`shell-command-switch' allows to specify the `-c' option, but there is
no way to specify the `-l' or `--login', is there?
Christoph
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shell invoked via shell-file-name
2011-04-09 3:29 Shell invoked via shell-file-name Christoph Scholtes
@ 2011-04-09 16:21 ` Eli Zaretskii
2011-04-11 3:29 ` Christoph Scholtes
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2011-04-09 16:21 UTC (permalink / raw
To: Christoph Scholtes; +Cc: emacs-devel
> From: Christoph Scholtes <cschol2112@googlemail.com>
> Date: Fri, 08 Apr 2011 21:29:53 -0600
>
> Is there a way to invoke a shell via `shell-file-name' with additional
> command line parameters?
I don't know. Did you try setting shell-command-switch to "-lc"?
> I am trying to use cygwin for certain things on a Windows system, for
> example mercurial, ruby or ack.
Why are trying this with Cygwin? There are native Windows ports of
Mercurial and Perl. AFAIK, the Windows port of Mercurial comes with
hg.exe, produced by Py2exe.
> I can call, for example, ack correctly from Windows cmd.exe like this:
>
> C:\>cywgin\bin\bash -l -c ack
>
> whereas
>
> C:\>cygwin\bin\bash -c ack
>
> does not work
>
> cygwin/bin/bash: ack: command not found
Perhaps we could teach cmdproxy about the shebang syntax of Unix
scripts. The Windows port of Make already knows about that.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shell invoked via shell-file-name
2011-04-09 16:21 ` Eli Zaretskii
@ 2011-04-11 3:29 ` Christoph Scholtes
2011-04-11 7:23 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Scholtes @ 2011-04-11 3:29 UTC (permalink / raw
To: Eli Zaretskii; +Cc: emacs-devel
On 4/9/2011 10:21 AM, Eli Zaretskii wrote:
>> Is there a way to invoke a shell via `shell-file-name' with additional
>> command line parameters?
>
> I don't know. Did you try setting shell-command-switch to "-lc"?
That seems to work. Thanks.
>> I am trying to use cygwin for certain things on a Windows system, for
>> example mercurial, ruby or ack.
>
> Why are trying this with Cygwin? There are native Windows ports of
> Mercurial and Perl. AFAIK, the Windows port of Mercurial comes with
> hg.exe, produced by Py2exe.
I know about the native ports. I wanted to try the Cygwin way, though.
> Perhaps we could teach cmdproxy about the shebang syntax of Unix
> scripts. The Windows port of Make already knows about that.
By Windows port of Make you mean mingw32-make?
Christoph
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shell invoked via shell-file-name
2011-04-11 3:29 ` Christoph Scholtes
@ 2011-04-11 7:23 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2011-04-11 7:23 UTC (permalink / raw
To: Christoph Scholtes; +Cc: emacs-devel
> Date: Sun, 10 Apr 2011 21:29:35 -0600
> From: Christoph Scholtes <cschol2112@googlemail.com>
> CC: emacs-devel@gnu.org
>
> > Perhaps we could teach cmdproxy about the shebang syntax of Unix
> > scripts. The Windows port of Make already knows about that.
>
> By Windows port of Make you mean mingw32-make?
Yes. Or what you get if you build the official Make sources with
MinGW using the instructions in README.W32.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-11 7:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09 3:29 Shell invoked via shell-file-name Christoph Scholtes
2011-04-09 16:21 ` Eli Zaretskii
2011-04-11 3:29 ` Christoph Scholtes
2011-04-11 7:23 ` Eli Zaretskii
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.