Why 'script' utility require SHELL (and work fine under Linux)?
Oleksandr Gavenko
gavenko@bifit.com.ua
Fri Oct 14 09:44:00 GMT 2011
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
More information about the Cygwin
mailing list