X-Recipient: archive-cygwin@delorie.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@cygwin.com
From: Oleksandr Gavenko <gavenko@bifit.com.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
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

