On 9/30/2011 10:27 AM, Markus Hoenicka wrote:
CYGWIN_NT-5.1 sbhc123 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

I use some Emacs extensions which execute external programs using
(call-process). This used to work on my previous setup, but it fails on
my current box. The following command run in Emacs reproduces what seems
to be the problem:

(call-process "bash" nil '(t t) nil "-ic" "ls -al")
bash: Kann die Prozessgruppe des Terminals nicht setzen (-1).:
Inappropriate ioctl for device
bash: Keine Job Steuerung in dieser Shell.

Markus,

Why are you calling bash with the -i option in this context? Your first `nil' causes bash's input to come from /dev/null. Does it make sense to have an interactive shell with input coming from /dev/null? If you remove -i and just run

(call-process "bash" nil '(t t) nil "-c" "ls -al") ,

it works fine with both cygwin 1.7.9 and the latest snapshot.

Maybe there's still a Cygwin bug here; I tested your original command in Linux, and it worked. But omitting -i might at least be a workaround for you.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to