Commit 3707ed8b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Change all head/tail -X to head/tail -n X to be more POSIXly

compliant.
parent f508a785
......@@ -360,7 +360,7 @@
<listitem>
<para>
Separate the last 100 lines to another file using
<command> tail </command>.
<command>tail</command>.
</para>
</listitem>
</orderedlist>
......@@ -388,7 +388,7 @@
<listitem>
<screen>
<prompt>$ </prompt>wine -debugmsg +relay [other_options] program_name |& tee filename.out;
<prompt>$ </prompt>tail -100 filename.out > report_file
<prompt>$ </prompt>tail -n 100 filename.out > report_file
</screen>
</listitem>
</varlistentry>
......@@ -397,7 +397,7 @@
<listitem>
<screen>
<prompt>$ </prompt>wine -debugmsg +relay [other_options] program_name 2>&1 | tee filename.out;
<prompt>$ </prompt>tail -100 filename.out > report_file
<prompt>$ </prompt>tail -n 100 filename.out > report_file
</screen>
</listitem>
</varlistentry>
......
......@@ -266,8 +266,8 @@ while ($exe=<FIND>) {
alarm(1000);# so it doesn't trigger in the diff, kill or find.
system("touch $cwd/runs/${runfile}.out");
system("$diff $cwd/runs/${runfile}.out $cwd/${runfile}.out|head -$trunclines");
system("head -$trunclines $cwd/${runfile}.out >$cwd/runs/${runfile}.out");
system("$diff $cwd/runs/${runfile}.out $cwd/${runfile}.out|head -n $trunclines");
system("head -n $trunclines $cwd/${runfile}.out >$cwd/runs/${runfile}.out");
unlink("$cwd/${runfile}.out");
&kill_subprocesses;
&cleanup_wine_ipc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment