ref: 6bb0202d65456bbd85648ad76552b8709bdb776c
parent: 7bf8c43ed5c66b80bb4c9b1ac1c6fdcfe72b9f19
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Feb 19 04:06:34 EST 2018
[tests/ar] Small fix for test-q.sh
--- a/tests/ar/execute/test-q.sh
+++ b/tests/ar/execute/test-q.sh
@@ -1,7 +1,6 @@
#!/bin/sh
-exec >> test.log
-exec 2>> test.log
+exec >> test.log 2>&1
set -e
@@ -87,7 +86,8 @@
############################################################################
#stress quick append
-for i in `awk '{for (i=0; i <999; ++i) print $i}``
+for i in `awk 'BEGIN {for (i=0; i <999; ++i) print i}'`
do
- ar -qv file.a $i
+ touch file-$i
+ ar -qv file.a file-$i
done