delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/13/05:40:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47D9023A.7050803@alice.it>
Date: Thu, 13 Mar 2008 11:30:18 +0100
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: On Bash options
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

Just a curiosity.

I have the following link on Desktop:

C:\cygwin\bin\run.exe bash -l -c start_urxvt.sh

with which I run 'start_urxvt.sh' located in /usr/local/bin.

'start_urxvt.sh' contains at the end:

[...]
exec /usr/bin/urxvt

which starts an URXVT console.

Well, the fact is that its prompt is:

sh-3.2$

If I change the above link using the '-e' instead of '-c' option,

C:\cygwin\bin\run.exe bash -l -e start_urxvt.sh

then the prompt is the one I like, i.e.

angelo AT mypc ~
$

I have searched the description of '-e' option using 'man bash' but I 
have not found it. (I have also searched the string '-e' in bash.1, but 
without success)

Is there a bug in bash.1 or what else?


Cheers,
    Angelo.

---
Tu proverai si' come sa di sale
lo pane altrui, e come e' duro calle
lo scendere e 'l salir per l'altrui scale.
.
                   DANTE, Paradiso, xvii 58-60

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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