Gitiles
Code Review
Sign In
192.168.1.100
/
T108
/
13455c9ed5a309670a1adf2b02a42c57f758bfb0
/
.
/
scripts
/
command_all.sh
blob: 452b66f092b1bb3ab0bcd05938d2714869f5d8ce [
file
] [
log
] [
blame
]
#! /bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Reduced version of which -a using command utility
case
$PATH
in
(*[!:]:)
PATH
=
"$PATH:"
;;
esac
for
ELEMENT
in
$
(
echo $PATH
|
tr
":"
"\n"
);
do
PATH
=
$ELEMENT command
-
v
"$@"
done