aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/getopt/getopt.c
diff options
context:
space:
mode:
authorMartin Cracauer <cracauer@FreeBSD.org>1999-04-04 00:25:39 +0000
committerMartin Cracauer <cracauer@FreeBSD.org>1999-04-04 00:25:39 +0000
commit0ab2a7ae85e2d50dcafed917b86006b751783ca3 (patch)
tree0574a25b4a956dc4a12869c2dfbdfe936353266a /usr.bin/getopt/getopt.c
parent68b7e6e74993c4e1f5a4504151ad3ab2742b7f3b (diff)
downloadsrc-0ab2a7ae85e2d50dcafed917b86006b751783ca3.tar.gz
src-0ab2a7ae85e2d50dcafed917b86006b751783ca3.zip
Back out part of previous commit.
Arguments with whitespaces are easy to fix, but in combination with shell metachars that should not be evaluated it is very hard, probably impossible to fix without going to a line-oriented solution. Next time I will believe Henry Spencer when he says "this looks easy to fix but isn't".
Notes
Notes: svn path=/head/; revision=45279
Diffstat (limited to 'usr.bin/getopt/getopt.c')
-rw-r--r--usr.bin/getopt/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/getopt/getopt.c b/usr.bin/getopt/getopt.c
index 19c21f853baf..060e2c9ce17f 100644
--- a/usr.bin/getopt/getopt.c
+++ b/usr.bin/getopt/getopt.c
@@ -17,7 +17,7 @@ char *argv[];
break;
default:
if (optarg != NULL)
- printf(" -%c '%s'", c, optarg);
+ printf(" -%c %s", c, optarg);
else
printf(" -%c", c);
break;