Bash 3 and $HOME abbreviated with a tilde.

2005-06-12 Thread J.O. Aho


Got a bit irritated when updating my Gentoo boxes to use bash 3.00.16, the 
\W and \w options for the prompt now replaces the home directory name to 
tilde, I hope I'm not the only one who wants to see the home directory 
name instead of the tilde.


Wouldn't it be possible to see options \U and \u (just a suggestion) which 
behaives as \W and \w used to do under 2.05.




Note, as I'm not memeber of this list, if replying to this post, please CC 
me.


--
 //Aho

 
  E-Mail: [EMAIL PROTECTED]URL: http://www.kotiaho.net/~trizt/
 ICQ: 13696780
  System: Linux System(PPC7447/1000 AMD K7A/2000)
 
EU forbids you to send spam without my permission
 


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: Bash 3 and $HOME abbreviated with a tilde.

2005-06-12 Thread Chris F.A. Johnson

On Sat, 11 Jun 2005, J.O. Aho wrote:



Got a bit irritated when updating my Gentoo boxes to use bash 3.00.16, the \W 
and \w options for the prompt now replaces the home directory name to tilde, 
I hope I'm not the only one who wants to see the home directory name instead 
of the tilde.


Wouldn't it be possible to see options \U and \u (just a suggestion) which 
behaives as \W and \w used to do under 2.05.


AFAICT, there is no difference in behaviour between 2.05 and 3.00
when using \w; there is for \W. (The documentation for bash3
mentions both explicitly, which it didn't in bash 2.05.)

If you want the full path (as in \w), use $PWD in PS1, e.g.:

PS1='$PWD \$ '


If you want the basename (as in \W):

PS1='${PWD##*/} \$ '

--
Chris F.A. Johnson 
==
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress



___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


remove extra blank lines in info table of contents

2005-06-12 Thread michael
Please remove the extra line spacing between items in the main table of
contents.  While it looks reasonable in the HTML version, it looks
dreadful in the info viewer and is inconsistent with the other tables
of links.

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include 
-I../bash/lib  -g -O2
uname output: Linux eagle.endbracket.net 2.6.7eagle-20040916 #1 Thu Sep 16 
23:36:29 EST 2004 i686 GNU/Linux
Machine Type: i386-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
[Detailed description of the problem, suggestion, or complaint.]

Repeat-By:
[Describe the sequence of events that causes the problem
to occur.]

Fix:
[Description of how to fix the problem.  If you don't know a
fix for the problem, don't include this section.]


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash