summaryrefslogtreecommitdiff
path: root/mk/buildlink3/quotearg
diff options
context:
space:
mode:
Diffstat (limited to 'mk/buildlink3/quotearg')
-rw-r--r--mk/buildlink3/quotearg16
1 files changed, 8 insertions, 8 deletions
diff --git a/mk/buildlink3/quotearg b/mk/buildlink3/quotearg
index ea37c7df37c..0cdbe2438ec 100644
--- a/mk/buildlink3/quotearg
+++ b/mk/buildlink3/quotearg
@@ -1,20 +1,20 @@
-# $NetBSD: quotearg,v 1.1 2003/10/03 19:39:19 jlam Exp $
+# $NetBSD: quotearg,v 1.2 2004/03/13 03:41:13 uebayasi Exp $
#
# Returns $qarg, which contains a correctly-quoted $arg. Also sets
# $quotedarg to "yes" if the $arg needed to be quoted.
#
case $arg in
*[\`\"\$\\]*)
- qarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+ qarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
quotedarg=yes
- ;;
+ ;;
*)
- qarg="$arg"
- ;;
+ qarg="$arg"
+ ;;
esac
case $qarg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- qarg="\"$qarg\""
+*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ qarg="\"$qarg\""
quotedarg=yes
- ;;
+ ;;
esac