Look to my session:
gavenko+bash# echo $SHELL
/bin/bash
gavenko+bash# script
Script started, file - typescript
sh-4.1$ ^C
sh-4.1$ exit
Script started, file - typescript
gavenko+bash# SHELL=/bin/bash script
Script started, file - typescript
gavenko+bash# ^C
gavenko+bash# exit
Script started, file - typescript
gavenko+bash# export SHELL
gavenko+bash# script
Script started, file - typescript
gavenko+bash# ^C
gavenko+bash# exit
As you can see first time script does not use SHELL, second time use it
and third time use it.
So SHELL env var does not exported by bash…
Why?
Is this right add
export SHELL
to ‘~/.bashrc’?
See answer to my question: http://cygwin.com/ml/cygwin/2011-10/msg00269.html