blob: ffe1baedcd8aa4a512a031b4b635937834d15399 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#
# 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: src/tools/regression/usr.bin/make/shell/select/Makefile,v 1.2 2005/05/31 14:13:05 harti Exp $
#
.ifmake sh_test
.SHELL: name=sh
sh_test: print_path
.elifmake csh_test
.SHELL: name=csh
csh_test: print_path
.elifmake ksh_test
.SHELL: name=ksh
ksh_test: print_path
.endif
print_path:
@ps -opid,command | awk '$$1=='$$$$' { print $$2; }'
|