delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/06/15:54:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Mon, 06 May 2002 15:54:09 -0400
From: Alan Dobkin <Alan AT ADobkin DOT Net>
To: Cygwin <Cygwin AT cygwin DOT com>
cc: Soren Andersen <perlspinr AT att DOT net>
Subject: Re: Cygwin BASH prompt a little weird?
Message-ID: <1124584216.1020700449@ADobkin-1.US.Nortel.Com>
In-Reply-To: <20020506185342.QGHB2855.mtiwmhc25.worldnet.att.net@webmail.worldnet.att.net>
References: <20020506185342 DOT QGHB2855 DOT mtiwmhc25 DOT worldnet DOT att DOT net AT webmail DOT worl
dnet.att.net>
MIME-Version: 1.0

It works for me:

$ PS1='\s-\v\$ '
bash-2.05a$ 

Alan

--On Monday, May 06, 2002 6:53 PM +0000 perlspinr AT att DOT net wrote:

> Hello,
> 
> In Cygwin using this version of BASH, my attempts to get 
> a simple name of the shell interpreter into my prompt 
> (PS1) using escaped-s ('\s'), which should work accoding 
> to
> http://www.linuxselfhelp.com/HOWTO/Bash-Prompt-
> HOWTO/bash-prompt-escape-sequences.html
> does not give the basename of of the shell but the 
> relative path by which I invoked bash: '/bin/bash'.
> 
> The HOWTO above states:
> \s     the  name  of  the shell, the basename of $0
>             (the portion following the final slash)
> 
> Is Cygwin not compliant with this?
> 
>   Thanks,
>     Soren Andersen

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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