1#
2# We just select the builtin shells and check whether it is really
3# executed. This should print just the shell paths. Because we
4# normally don't have a ksh, we make this test conditional. This means
5# one has to recreate the test results once ksh is installed.
6#
7#
8
9.ifmake sh_test
10
11.SHELL: name=sh
12sh_test: print_path
13
14.elifmake csh_test
15
16.SHELL: name=csh
17csh_test: print_path
18
19.elifmake ksh_test
20
21.SHELL: name=ksh
22ksh_test: print_path
23
24.endif
25
26print_path:
27	@ps -x -opid,command | awk '$$1=='$$$$' { print $$2; }'
28