cd with multiple directory argument fails

Bug #1683576 reported by Murukesh Mohanan on 2017-04-18
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Undecided
Unassigned

Bug Description

In bash 4.4, a new behaviour was introduced for cd, where it would complain if multiple arguments are provided. From config-top.h [1]:

/* Define CD_COMPLAINS if you want the non-standard, but sometimes-desired
   error messages about multiple directory arguments to `cd'. */
#define CD_COMPLAINS

It seems like this is enabled for Ubuntu. However, this behaviour conflicts with the manual (both Ubuntu's and GNU's), which says something similar to: "Any additional arguments following directory are ignored."

Please revert to the old behaviour, or correct the manual. This is not a user-configurable setting, and push is also affected.

Ubuntu 17.04
bash 4.4-2ubuntu1

[1]: http://git.savannah.gnu.org/cgit/bash.git/tree/config-top.h#n30

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash (Ubuntu):
status: New → Confirmed
Norbert (nrbrtx) wrote :

Seen on AskUbuntu during discussion of the problem "Command cd behavior" (https://askubuntu.com/q/992192/66509).

tags: added: artful bionic
Norbert (nrbrtx) wrote :

Also on "Ubuntu 17.04 — bash: cd: too many arguments" (https://askubuntu.com/q/905832/66509).

Norbert (nrbrtx) on 2018-01-04
tags: added: zesty
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers