blob: 127dca28530092dbf751b4be0fa60975b4b110a8 (
plain)
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
29
30
31
32
33
|
#
# 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$
#
all:
@${MAKE} sh
@${MAKE} csh
@if [ -x /bin/ksh ] ; then ${MAKE} ksh ; fi
.ifmake sh
.SHELL: name=sh
sh: print_path
.elifmake csh
.SHELL: name=csh
csh: print_path
.elifmake ksh
.SHELL: name=ksh
ksh: print_path
.endif
print_path:
@ps -opid,command | awk '$$1=='$$$$' { print $$2; }'
|