This is the mail archive of the
cygwin
mailing list for the Cygwin project.
native console apps from #!/bin/sh scripts
- From: Rafael Kitover <rkitover at cpan dot org>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 11 Mar 2011 05:59:25 -0500
- Subject: native console apps from #!/bin/sh scripts
- Reply-to: rkitover at cpan dot org
I can run native console apps from a console in a cygwin shell fine,
however, for some reason they don't work correctly from a #!/bin/sh script.
E.g., for activestate perl:
TERM=dumb /c/Perl/bin/perl -MCPAN -e shell
run from zsh prompt works correctly with readline support.
Now if I put that in a script:
#!/bin/sh
TERM=dumb /c/Perl/bin/perl -MCPAN -e shell
then when I run the script the readline support is disabled for some reason.
What are differences in environment in a script as opposed to the
regular prompt that would cause this? And is there a workaround?
Does it have something to do with STDIN redirection away from the console?
--
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