]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/builtins/local5.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / local5.0
CommitLineData
deb63bfb
A
1# $FreeBSD: head/bin/sh/tests/builtins/local5.0 293635 2016-01-10 16:31:28Z jilles $
2
3f() {
4 local PATH IFS elem
5 IFS=:
6 for elem in ''$PATH''; do
7 PATH=/var/empty/$elem:$PATH
8 done
9 ls -d / >/dev/null
10}
11
12p1=$(command -v ls)
13f
14p2=$(command -v ls)
15[ "$p1" = "$p2" ]