This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Why 'script' utility require SHELL (and work fine under Linux)?
- From: Oleksandr Gavenko <gavenko at bifit dot com dot ua>
- To: cygwin at cygwin dot com
- Date: Fri, 14 Oct 2011 12:43:52 +0300
- Subject: Why 'script' utility require SHELL (and work fine under Linux)?
Look to my session:
ï gavenko+bash# echo $SHELL
/bin/bash
gavenko+bash# script
ÐÐÑÐÐÑ ÐÐÐÑÑÐÐ, ÑÐÐÐ - typescript
sh-4.1$ ^C
sh-4.1$ exit
ÐÐÑÐÐÑ ÐÑÐÐÐÐÐÐ, ÑÐÐÐ - typescript
gavenko+bash# SHELL=/bin/bash script
ÐÐÑÐÐÑ ÐÐÐÑÑÐÐ, ÑÐÐÐ - typescript
gavenko+bash# ^C
gavenko+bash# exit
ÐÐÑÐÐÑ ÐÑÐÐÐÐÐÐ, ÑÐÐÐ - typescript
gavenko+bash# export SHELL
gavenko+bash# script
ÐÐÑÐÐÑ ÐÐÐÑÑÐÐ, ÑÐÐÐ - typescript
gavenko+bash# ^C
gavenko+bash# exit
As you can see first time script does not use SHELL, second time use it
and third tie use it.
So SHELL env var does not exported by bash...
Why?
Is this right add
export SHELL
to '~/.bashrc'?
--
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