[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[50 character or so descriptive subject here (for reference)]
From: |
Jonathan Amery |
Subject: |
[50 character or so descriptive subject here (for reference)] |
Date: |
Fri, 13 Oct 2000 15:31:19 +0100 |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I. -I.
-I./lib -I/usr/include -O2 -pipe -fsigned-char
uname output: Linux vermont 2.2.13 #1 Mon Nov 8 15:51:29 CET 1999 i686 unknown
Machine Type: i686-pc-linux-gnu
Bash Version: 2.03
Patch Level: 0
Release Status: release
Description:
The info file says that in the context of prompts:
`\w'
The current working directory.
`\W' The basename of `$PWD'.
However:
bash # export PS1='\[\033[1;36m\]\h:\w#\[\033[0m\] '
vermont:/ext2b/what\ the\ bloody\ hell\ is\ going\ on\ here# export
PS1='\[\033[1;36m\]\h:\W#\[\033[0m\] '
vermont:what\ the\ bloody\ hell\ is\ going\ on\ here# export
PS1='\[\033[1;36m\]\h:$PWD#\[\033[0m\] '
vermont:/ext2b/what the bloody hell is going on here#
(Namely that the quoting rules are different for \w and \W than for $PWD)
Repeat-By:
See above
Fix:
Correct the documentation, or rationalise the quoting rules.
- [50 character or so descriptive subject here (for reference)], aprakash, 2000/10/10
- [50 character or so descriptive subject here (for reference)], Hirokazu Tsuda, 2000/10/11
- [50 character or so descriptive subject here (for reference)],
Jonathan Amery <=
- Re: [50 character or so descriptive subject here (for reference)], Chet Ramey, 2000/10/17
- [50 character or so descriptive subject here (for reference)], Mark Mitchell, 2000/10/25
- Re: [50 character or so descriptive subject here (for reference)], Chet Ramey, 2000/10/26
- [50 character or so descriptive subject here (for reference)], Eric G. Bergeron, 2000/10/26