mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 19:04:10 +00:00
Change all head/tail -X to head/tail -n X to be more POSIXly
compliant.
This commit is contained in:
parent
f508a78509
commit
3707ed8b68
|
@ -360,7 +360,7 @@
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Separate the last 100 lines to another file using
|
Separate the last 100 lines to another file using
|
||||||
<command> tail </command>.
|
<command>tail</command>.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</orderedlist>
|
</orderedlist>
|
||||||
|
@ -388,7 +388,7 @@
|
||||||
<listitem>
|
<listitem>
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>$ </prompt>wine -debugmsg +relay [other_options] program_name |& tee filename.out;
|
<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>
|
</screen>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -397,7 +397,7 @@
|
||||||
<listitem>
|
<listitem>
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>$ </prompt>wine -debugmsg +relay [other_options] program_name 2>&1 | tee filename.out;
|
<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>
|
</screen>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
|
@ -266,8 +266,8 @@ while ($exe=<FIND>) {
|
||||||
alarm(1000);# so it doesn't trigger in the diff, kill or find.
|
alarm(1000);# so it doesn't trigger in the diff, kill or find.
|
||||||
|
|
||||||
system("touch $cwd/runs/${runfile}.out");
|
system("touch $cwd/runs/${runfile}.out");
|
||||||
system("$diff $cwd/runs/${runfile}.out $cwd/${runfile}.out|head -$trunclines");
|
system("$diff $cwd/runs/${runfile}.out $cwd/${runfile}.out|head -n $trunclines");
|
||||||
system("head -$trunclines $cwd/${runfile}.out >$cwd/runs/${runfile}.out");
|
system("head -n $trunclines $cwd/${runfile}.out >$cwd/runs/${runfile}.out");
|
||||||
unlink("$cwd/${runfile}.out");
|
unlink("$cwd/${runfile}.out");
|
||||||
&kill_subprocesses;
|
&kill_subprocesses;
|
||||||
&cleanup_wine_ipc;
|
&cleanup_wine_ipc;
|
||||||
|
|
Loading…
Reference in a new issue