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