1146381Sharti#
2146381Sharti# We just select the builtin shells and check whether it is really
3146381Sharti# executed. This should print just the shell paths. Because we
4146381Sharti# normally don't have a ksh, we make this test conditional. This means
5146381Sharti# one has to recreate the test results once ksh is installed.
6146381Sharti#
7146381Sharti# $FreeBSD: releng/10.3/usr.bin/bmake/tests/shell/select/Makefile.test 263346 2014-03-19 12:29:20Z jmmv $
8146381Sharti#
9146381Sharti
10146822Sharti.ifmake sh_test
11146381Sharti
12146381Sharti.SHELL: name=sh
13146822Shartish_test: print_path
14146381Sharti
15146822Sharti.elifmake csh_test
16146381Sharti
17146381Sharti.SHELL: name=csh
18146822Sharticsh_test: print_path
19146381Sharti
20146822Sharti.elifmake ksh_test
21146381Sharti
22146381Sharti.SHELL: name=ksh
23146822Shartiksh_test: print_path
24146381Sharti
25146381Sharti.endif
26146381Sharti
27146381Shartiprint_path:
28263346Sjmmv	@ps -x -opid,command | awk '$$1=='$$$$' { print $$2; }'
29