[kupfer: 7/7] Use -- when passing on command line arguments to `realpath'



commit d9be29e83df6c9850ed1ff9cfbe7a61aeb40ae79
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Aug 24 21:16:14 2010 +0200

    Use -- when passing on command line arguments to `realpath'

 bin/kupfer.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bin/kupfer.in b/bin/kupfer.in
index 1d477a5..3ff4dc6 100755
--- a/bin/kupfer.in
+++ b/bin/kupfer.in
@@ -53,7 +53,7 @@ _realpaths () {
 	# Emit realpaths for arguments, separated by NUL bytes
 	while test $# != 0
 	do
-		echo -ne $(realpath "$1")"\0"
+		echo -ne $(realpath -- "$1")"\0"
 		shift
 	done
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]