about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-04-17 16:03:41 +0200
committerLeah Neukirchen <leah@vuxu.org>2018-04-17 16:03:41 +0200
commita52f8ce14798f1f081227813179c4af76ef25220 (patch)
treea37a5b1cf0273e1f6f20c19560f8ff12077389f7
parentfd3d9c2db511e9c8004a7dafd3780d134374891b (diff)
downloadlr-a52f8ce14798f1f081227813179c4af76ef25220.tar.gz
lr-a52f8ce14798f1f081227813179c4af76ef25220.tar.xz
lr-a52f8ce14798f1f081227813179c4af76ef25220.zip
print_shquoted: respect Qflag
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 8c4efe7..636b768 100644
--- a/lr.c
+++ b/lr.c
@@ -1725,7 +1725,7 @@ print_shquoted(const char *s)
 		}
 	}
 
-	if (!esc) {
+	if (!Qflag || !esc) {
 		printf("%s", s);
 		return;
 	}