[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

internal command cd ; additional arguments are not ignored

From: martin i
Subject: internal command cd ; additional arguments are not ignored
Date: Wed, 25 May 2022 13:56:49 +0200

Configuration Information [Automatically generated, do not change]:
Machine: amd64
OS: freebsd12.3
Compiler: cc
Compilation CFLAGS: -O2 -pipe -fno-omit-frame-pointer  -DLIBICONV_PLUG
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
uname output: FreeBSD bxlr.sk 12.3-RELEASE FreeBSD 12.3-RELEASE
releng/12.3-n1-70cb68e7a BXLR  amd64
Machine Type: amd64-portbld-freebsd12.3

Bash Version: 5.1
Patch Level: 16
Release Status: release

        Bash internal command cd doesn't ignore additional arguments
following dir as stated in its man page.
        This is not OS dependent, reproducible on Linux/FreeBSD since
version 4.4.

        $ cd /tmp /root
        -bash: cd: too many arguments

        While cd-ing to more dirs doesn't make sense this issue was
discovered by some bad regex in SAP profiles.
        bash before 4.4 was silently ignoring this.

        If this is expected behavior man page should be updated as those
arguments are not ignored any more.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]