commit: b6818537c1cba4ea4fc1048f04b782d43bd765bf
parent: 70e44f72f1d452b90fa5a8104004b8577458fa8b
author: Cd <cadmium@nixnetmail.com>
date: Sat, 13 Feb 2021 22:05:31 +0600
configure: Use substring processing instead of cut(1)
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
@@ -739,7 +739,7 @@ for opt
do
case "$opt" in
--prefix=*)
- prefix=`echo $opt | cut -d '=' -f 2`
+ prefix=${opt#*=}
if [ $bindirset -eq 0 ] ; then
bindir="$prefix/bin"
fi
@@ -748,11 +748,11 @@ do
fi
;;
--bindir=*)
- bindir=`echo $opt | cut -d '=' -f 2`
+ bindir=${opt#*=}
bindirset=1
;;
--mandir=*)
- mandir=`echo $opt | cut -d '=' -f 2`
+ mandir=${opt#*=}
mandirset=1
;;
--disable-curses|--enable-curses)