bug-bash
[Top][All Lists]
Advanced

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

cd "" return value


From: furrymcgee
Subject: cd "" return value
Date: Tue, 19 Mar 2019 08:21:59 +0000
User-agent: NeoMutt/20170113 (1.7.2)

Good morning,  

In GNU bash, version 5.0.2(1)-release (x86_64-pc-linux-gnu):
The command cd "" is successful but cd -P "" fails.
This is inconsistent and not evident in man bash.
Expected is that cd "$(mktemp -d)" returns error if mktemp fails.

BASH(1)

cd
        ...
        The  return  value  is  true  if  the directory was successfully
        changed; false otherwise.




reply via email to

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