Skip to content

Commit

Permalink
test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Mar 21, 2024
1 parent 41e4cd3 commit 9c0d93d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions src/lib/libast/comp/conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,17 +330,22 @@ $cc -E $tmp.c >/dev/null 2>&1 || systeminfo=
CONF_getconf=
CONF_getconf_a=
IFS=':'; set -f
echo "[DEBUG conf.sh] DEFPATH=$DEFPATH" >&2

for d in \
/run/current-system/sw/bin \
/usr/xpg7/bin \
/usr/xpg6/bin \
/usr/xpg4/bin \
/usr/bin \
/bin \
/usr/sbin \
/sbin \
$PATH
do case $d in
$DEFPATH $PATH
# /run/current-system/sw/bin \
# /usr/xpg7/bin \
# /usr/xpg6/bin \
# /usr/xpg4/bin \
# /usr/bin \
# /bin \
# /usr/sbin \
# /sbin \
# $PATH
do
echo "[DEBUG] conf.sh] trying $d/getconf" >&2
case $d in
/*) ;;
*) continue ;;
esac
Expand All @@ -360,6 +365,7 @@ do case $d in
done
IFS=$ifs; set +f
export CONF_getconf CONF_getconf_a
echo "[DEBUG] conf.sh] CONF_getconf=<$CONF_getconf> CONF_getconf_a=<$CONF_getconf_a>" >&2

case $verbose in
1) echo "$command: check ${CONF_getconf:+$CONF_getconf(1),}confstr(3),pathconf(2),sysconf(3),sysinfo(2) configuration names" >&2 ;;
Expand Down

0 comments on commit 9c0d93d

Please sign in to comment.