#!@SHELL@
-# $Id: ncurses-config.in,v 1.50 2021/08/07 21:36:14 tom Exp $
+# $Id: ncurses-config.in,v 1.51 2022/07/16 17:07:38 tom Exp $
##############################################################################
-# Copyright 2018-2020,2021 Thomas E. Dickey #
+# Copyright 2018-2021,2022 Thomas E. Dickey #
# Copyright 2006-2015,2017 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
lib_flags="$lib_flags $opt"
done
-[ $# = 0 ] && exec @SHELL@ $0 --error
+[ $# = 0 ] && exec @SHELL@ "$0" --error
while [ $# -gt 0 ]; do
case "$1" in
[ -n "$OPTS" ] && OPTS="$OPTS "
OPTS="${OPTS}${opt}"
done
- printf "%s\n" "$OPTS"
+ printf '%s\n' "$OPTS"
;;
--libs-only-L)
OPTS=
;;
esac
done
- printf "%s\n" "$OPTS"
+ printf '%s\n' "$OPTS"
;;
--libs-only-l)
OPTS=
;;
esac
done
- printf "%s\n" "$OPTS"
+ printf '%s\n' "$OPTS"
;;
--libs-only-other)
OPTS=
;;
esac
done
- printf "%s\n" "$OPTS"
+ printf '%s\n' "$OPTS"
;;
# identification
--version)
elif [ "${includedir}" != /usr/include ]; then
INCS="${includedir}"
fi
- echo $INCS
+ echo "$INCS"
;;
--libdir)
echo "${libdir}"
# general info
--help)
cat <<ENDHELP
-Usage: `basename $0` [options]
+Usage: `basename "$0"` [options]
Options:
--prefix echos the package-prefix of ${THIS}
ENDHELP
;;
--error|*)
- @SHELL@ $0 --help 1>&2
+ @SHELL@ "$0" --help 1>&2
exit 1
;;
esac