2005-05-19 07:23:01 -04:00
|
|
|
#
|
|
|
|
|
# We just select the builtin shells and check whether it is really
|
|
|
|
|
# executed. This should print just the shell paths. Because we
|
|
|
|
|
# normally don't have a ksh, we make this test conditional. This means
|
|
|
|
|
# one has to recreate the test results once ksh is installed.
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
#
|
|
|
|
|
|
2005-05-31 10:13:07 -04:00
|
|
|
.ifmake sh_test
|
2005-05-19 07:23:01 -04:00
|
|
|
|
|
|
|
|
.SHELL: name=sh
|
2005-05-31 10:13:07 -04:00
|
|
|
sh_test: print_path
|
2005-05-19 07:23:01 -04:00
|
|
|
|
2005-05-31 10:13:07 -04:00
|
|
|
.elifmake csh_test
|
2005-05-19 07:23:01 -04:00
|
|
|
|
|
|
|
|
.SHELL: name=csh
|
2005-05-31 10:13:07 -04:00
|
|
|
csh_test: print_path
|
2005-05-19 07:23:01 -04:00
|
|
|
|
2005-05-31 10:13:07 -04:00
|
|
|
.elifmake ksh_test
|
2005-05-19 07:23:01 -04:00
|
|
|
|
|
|
|
|
.SHELL: name=ksh
|
2005-05-31 10:13:07 -04:00
|
|
|
ksh_test: print_path
|
2005-05-19 07:23:01 -04:00
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
print_path:
|
|
|
|
|
@ps -opid,command | awk '$$1=='$$$$' { print $$2; }'
|