This is the mail archive of the cygwin@cygwin.com 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]

Re: Cygwin BASH prompt a little weird?


It works for me:

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

Alan

--On Monday, May 06, 2002 6:53 PM +0000 perlspinr@att.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/


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