All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [PATCH] ipipe: fix script name in genpatches usage output
@ 2017-02-06 22:51 Dmitriy Cherkasov
  0 siblings, 0 replies; only message in thread
From: Dmitriy Cherkasov @ 2017-02-06 22:51 UTC (permalink / raw)
  To: xenomai

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-06 22:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-06 22:51 [Xenomai] [PATCH] ipipe: fix script name in genpatches usage output Dmitriy Cherkasov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.