summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-comm/comm.tests
blob: 671bfc176ac09f17c86527d2dc054fbd4d437d02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
echo "#!$THIS_SH"
echo 'procdir=/proc/$$'
#echo 'echo "  /proc/N/exe:  $(basename $(readlink $procdir/exe))"'
echo 'echo "  /proc/N/comm: $(cat $procdir/comm)"'
} >SCRIPT.sh
chmod 755 SCRIPT.sh

# comm field was wrong if CONFIG_FEATURE_PREFER_APPLETS=y
echo './SCRIPT.sh:'
./SCRIPT.sh

# comm field was wrong if CONFIG_FEATURE_PREFER_APPLETS=y
echo 'exec ./SCRIPT.sh:'
(exec ./SCRIPT.sh)

echo 'sh ./SCRIPT.sh:'
$THIS_SH ./SCRIPT.sh

rm SCRIPT.sh