From 12091330be193cd0836d48c525bab015fcec2c75 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Thu, 7 Jan 2010 17:10:30 -0500 Subject: [PATCH] Take care when echoing something that could start with a -. --- stap-client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stap-client b/stap-client index a3b37e680..869bff426 100755 --- a/stap-client +++ b/stap-client @@ -449,7 +449,7 @@ function include_file_or_directory { # client's temporary directory. function generate_client_temp_name { # Transform the name into a fully qualified path name - local full_name=`echo "$1" | sed "s,^\\\([^/]\\\),$wd/\\\\1,"` + local full_name=`echo "X$1" | sed "s,^X\\\([^/]\\\),$wd/\\\\1," | sed 's,^X,,'` # The same name without the initial / or trailing / local local_name=`echo "$full_name" | sed 's,^/\(.*\),\1,'` -- 2.43.5