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.