delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/14/05:44:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Oleksandr Gavenko <gavenko AT bifit DOT com DOT ua>
Subject: Why 'script' utility require SHELL (and work fine under Linux)?
Date: Fri, 14 Oct 2011 12:43:52 +0300
Lines: 36
Message-ID: <j7908e$hjt$1@dough.gmane.org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Note-from-DJ: This may be spam

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019