This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]