Blame SOURCES/cscope-5-contrib-ocs-Fix-bashims-Closes-480591.patch

b93632
From bb7f25fad3cade493486a6287f5212cdfb6cce24 Mon Sep 17 00:00:00 2001
b93632
From: Jari Aalto <jari.aalto@cante.net>
b93632
Date: Sat, 8 May 2010 20:15:35 +0300
b93632
Subject: [PATCH 6/9] contrib/ocs: Fix bashims (Closes: #480591)
b93632
b93632
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
b93632
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
b93632
---
b93632
 contrib/ocs | 16 ++++++++--------
b93632
 1 file changed, 8 insertions(+), 8 deletions(-)
b93632
b93632
diff --git a/contrib/ocs b/contrib/ocs
b93632
index e924f4f..bd556b4 100755
b93632
--- a/contrib/ocs
b93632
+++ b/contrib/ocs
b93632
@@ -86,7 +86,7 @@ if [ ! -d ${SYSDIR} ]; then
b93632
 fi
b93632
 
b93632
 # Check that cscope is in PATH
b93632
-type cscope 1>/dev/null 2>&1
b93632
+which cscope 1>/dev/null 2>&1
b93632
 
b93632
 if [ $? -ne 0 ]
b93632
 then
b93632
@@ -167,8 +167,8 @@ create_list()
b93632
 
b93632
 	if [ "${FORCE}" != "Y" ]
b93632
 	then
b93632
-	    echo "\n${LIST}"
b93632
-	    echo "Update the library? <(Y)es, (N)o, (Q)uit> [n] \c"
b93632
+	    printf "\n${LIST}\n"
b93632
+	    printf "Update the library? <(Y)es, (N)o, (Q)uit> [n] "
b93632
 	    read x y
b93632
 	    case $x in
b93632
 		[Yy]* )	;;
b93632
@@ -176,9 +176,9 @@ create_list()
b93632
 		*)	return	;;
b93632
 	    esac
b93632
 	fi
b93632
-	echo "Updating library:\n  ${LIST} \c"
b93632
+	printf "Updating library:\n  ${LIST} "
b93632
     else
b93632
-	echo "Creating library:\n  ${LIST} \c"
b93632
+	printf "Creating library:\n  ${LIST} "
b93632
     fi
b93632
 
b93632
     (
b93632
@@ -196,7 +196,7 @@ create_list()
b93632
 				  -print
b93632
    ) | grep -v SCCS | sort -u > ${LIST}
b93632
 
b93632
-    echo "\n`cat ${LIST} | wc -l` files listed"
b93632
+    printf "\n`cat ${LIST} | wc -l` files listed\n"
b93632
 }
b93632
 
b93632
 #
b93632
@@ -210,7 +210,7 @@ exp_inc()
b93632
     then
b93632
 	for i in `cat ${theInc}`
b93632
 	do
b93632
-	    echo "-I $i \c"
b93632
+	    printf "-I $i "
b93632
 	done
b93632
     fi
b93632
 }
b93632
@@ -285,7 +285,7 @@ std_libs ${SYSDIR}$PWD
b93632
 
b93632
 DIR=$PWD
b93632
 if [ ! -n "${NOUPDATE}" -o -n "${SPECDEST}" ] ; then
b93632
-echo "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] \c"
b93632
+    printf "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] "
b93632
 
b93632
 # shellcheck disable=SC2034
b93632
 read x y
b93632
-- 
b93632
2.26.2
b93632