[Xenomai] [PATCH] ipipe: fix script name in genpatches usage output

Dmitriy Cherkasov dmitriy at mperpetuo.com
Mon Feb 6 23:51:38 CET 2017


The script name was being output as "$me" when run with --help.
---
 scripts/ipipe/genpatches.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ipipe/genpatches.sh b/scripts/ipipe/genpatches.sh
index 9392a41..07b6cf3 100755
--- a/scripts/ipipe/genpatches.sh
+++ b/scripts/ipipe/genpatches.sh
@@ -1,7 +1,7 @@
 #! /bin/sh
 
-me=`basename $0`
-usage='usage: $me [--split] [--help] [reference]'
+me=$(basename -- "$0")
+usage='usage: '"$me"' [--split] [--help] [reference]'
 split=no
 
 while test $# -gt 0; do
-- 
1.9.1




More information about the Xenomai mailing list