summary refs log tree commit diff
path: root/bin/cash/tests/builtins/cd7.0
blob: 2219b7b45f4b9dc2dad92013fc2298b88fc5a398 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/cd7.0 222381 2011-05-27 20:01:46Z jilles $

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 ]