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.
15 lines
180 B
Text
15 lines
180 B
Text
# $FreeBSD$
|
|
|
|
set -e
|
|
cd /usr/bin
|
|
[ "$PWD" = /usr/bin ]
|
|
CDPATH=/:
|
|
cd .
|
|
[ "$PWD" = /usr/bin ]
|
|
cd ./
|
|
[ "$PWD" = /usr/bin ]
|
|
cd ..
|
|
[ "$PWD" = /usr ]
|
|
cd /usr/bin
|
|
cd ../
|
|
[ "$PWD" = /usr ]
|