all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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.