[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cd's Extraneous Arguments.
From: |
Ralph Corderoy |
Subject: |
cd's Extraneous Arguments. |
Date: |
Fri, 15 Apr 2016 13:22:43 +0100 |
Hi,
4.3.42(1)-release
`cd foo bar xyzzy' changes directory to foo, complaining if it doesn't
exist. It doesn't complain about the unwanted extra arguments. This
can cause problems; `cd *04' ends up in 2015-04, not 2016-04.
Keith Thompson raised this in 2010,
https://lists.gnu.org/archive/html/bug-bash/2010-12/msg00072.html and
the list discussed that pushd, etc., also have this behaviour, but the
thread quickly went way off topic and I didn't spot a resolution.
I think cd should match the `help cd' output and insist on at most one
`dir'. Why doesn't it do this? If the behaviour isn't going to change
then the documentation should be altered to match.
Please keep me CC'd; I'm not subscribed.
Cheers, Ralph.
- cd's Extraneous Arguments.,
Ralph Corderoy <=