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
> >
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
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
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
---