Re: [bug] Home dir in PS1 not abbreviated to tilde

2012-03-13 Thread Yongzhi Pan
On Tue, Mar 13, 2012 at 8:58 PM, Chet Ramey wrote: > On 3/12/12 12:22 AM, Yongzhi Pan wrote: > > Tested in GNU bash, version 3.00.16(1)-release and 4.1.2(1)-release. > > > > Upon login, home dir is displayed as tilde in PS1: > > pan@BJ-APN-2 ~$ echo $PS1 > >

[bug] Home dir in PS1 not abbreviated to tilde

2012-03-11 Thread Yongzhi Pan
Tested in GNU bash, version 3.00.16(1)-release and 4.1.2(1)-release. Upon login, home dir is displayed as tilde in PS1: pan@BJ-APN-2 ~$ echo $PS1 \[\033[35m\]\u@\h \w$ \[\033[0m\] pan@BJ-APN-2 ~$ pwd /export/home/pan/ After a cd command, which change directory to $HOME (not changed at all), it is

Re: *(.*) matches wrongly when dotglob unset

2011-12-04 Thread Yongzhi Pan
On 11/29/11 9:53 AM, Yongzhi Pan wrote: >> Producing the bug: >> >> tux@dell:~$ shopt -s extglob >> tux@dell:~$ shopt -u dotglob >> tux@dell:~$ ls -d *(.*) >> ls: cannot access *(.*): No such file or directory >> tux@dell:~$ touch '*(.*)' >> tux@de

*(.*) matches wrongly when dotglob unset

2011-11-29 Thread Yongzhi Pan
Producing the bug: tux@dell:~$ shopt -s extglob tux@dell:~$ shopt -u dotglob tux@dell:~$ ls -d *(.*) ls: cannot access *(.*): No such file or directory tux@dell:~$ touch '*(.*)' tux@dell:~$ ls -d *(.*) *(.*) I think even if dotglob is unset *(.*) should still matches all dotfiles. Yongzhi ---