summaryrefslogtreecommitdiff
path: root/lib/quotearg.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-08-01 07:44:39 +0000
committerJim Meyering <jim@meyering.net>1999-08-01 07:44:39 +0000
commited0c88b7f74f0d4ff9bd30a59c1af3ac8302c352 (patch)
treeba4923384908bc1695c589f4b6ad634a60a96e48 /lib/quotearg.c
parentfabd45e6c6a3ae8b858533f2e0c085a9564a39ac (diff)
downloadcoreutils-ed0c88b7f74f0d4ff9bd30a59c1af3ac8302c352.tar.xz
(quotearg_buffer):
Don't quote spaces if C quoting style.
Diffstat (limited to 'lib/quotearg.c')
-rw-r--r--lib/quotearg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/quotearg.c b/lib/quotearg.c
index 6e923a81e..124f74274 100644
--- a/lib/quotearg.c
+++ b/lib/quotearg.c
@@ -263,6 +263,10 @@ quotearg_buffer (char *buffer, size_t buffersize,
goto store_escape;
break;
+ case ' ':
+ if (quoting_style == c_quoting_style)
+ goto store_c;
+ /* Fall through. */
default:
if (!ISGRAPH (c))
{