cd with multiple directory argument fails

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

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'. */

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


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

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

Also on "Ubuntu 17.04 — bash: cd: too many arguments" (

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