[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug] cd //
From: |
Doug Kearns |
Subject: |
Re: [bug] cd // |
Date: |
27 Mar 2001 09:06:39 GMT |
User-agent: |
slrn/0.9.6.2 (Linux) |
On Mon, 26 Mar 2001 12:25:09 -0500, Chet Ramey <chet@nike.ins.cwru.edu> wrote:
> > [doug-4999 doug]$ cd /
> > [doug-5000 /]$ pwd
> > /
> > [doug-5001 /]$ cd
> > [doug-5002 doug]$ cd //
> > [doug-5003 ]$ pwd
> > //
> > [doug-5004 ]$
>
> POSIX says that double slashes at the beginning of pathnames must be
> left alone.
>
Didn't know that, thanks.
Should the prompt string not show the correct path though, or at least
the result of $(basename $(pwd)) for \W ?
\w works fine.
[doug-4995 doug]$ echo $PS1
[\u-\! \W]\$
[doug-4996 doug]$ bash --version
GNU bash, version 2.04.11(1)-release (i386-redhat-linux-gnu)
Copyright 1999 Free Software Foundation, Inc.
Thanks,
Doug