]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/good-multiline
Don't split on ; in quotes.
[blhc/blhc.git] / t / logs / good-multiline
index cc4a90c89a74574578baf3de5ef95b9cd7db31a3..24a684f15a6f0f5e9cbeed24dbfa03df76b8f68b 100644 (file)
@@ -1,3 +1,5 @@
+dpkg-buildpackage: source package test
+
 # Command over multiple lines.
 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 \
 \
@@ -14,6 +16,18 @@ gcc \
        test \
            test-a.o test-b.o test-c.o \
 -ltest
+gcc \
+               -Wl,-z,relro \
+-o\
+test \
+           test-a.o test-b.o test-c.o \
+-ltest
+gcc \
+               -Wl,-z,relro \
+-o\
+       test\
+           test-a.o test-b.o test-c.o \
+-ltest
 
 # Multiple commands in a single line.
 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c; gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c
@@ -24,3 +38,6 @@ gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-securit
 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c
 # Escaped ";" - not really useful, just to check it works.
 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security \; -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
+
+gcc -c test.c `echo -g -O2 -fstack-protector --param=ssp-buffer-size=4 echo -Wformat -Wformat-security -Werror=format-security | sed 's/.../; s/.../'` -D_FORTIFY_SOURCE=2 -o test.o
+gcc -c test.c `echo -g -O2 -fstack-protector --param=ssp-buffer-size=4 echo -Wformat -Wformat-security -Werror=format-security | sed "s/.../; s/.../"` -D_FORTIFY_SOURCE=2 -o test.o