mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 07:25:10 -04:00
CDPATH should be ignored not only for pathnames starting with '/' but also for pathnames whose first component is '.' or '..'. The man page already describes this behaviour.
10 lines
101 B
Text
10 lines
101 B
Text
# $FreeBSD$
|
|
|
|
set -e
|
|
cd -P /bin
|
|
d=$PWD
|
|
CDPATH=/:
|
|
cd -P .
|
|
[ "$d" = "$PWD" ]
|
|
cd -P ./
|
|
[ "$d" = "$PWD" ]
|