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

Francois Gouget fgouget at codeweavers.com
Sat Oct 18 16:16:03 CDT 2003


Changelog:

    Francois Gouget <fgouget at codeweavers.com>

  * documentation/bugs.sgml,
    tools/testrun

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


-- 
Francois Gouget
fgouget at codeweavers.com

-------------- next part --------------
Index: documentation/bugs.sgml
===================================================================
RCS file: /home/cvs/wine/documentation/bugs.sgml,v
retrieving revision 1.13
diff -u -r1.13 bugs.sgml
--- documentation/bugs.sgml	21 Jul 2003 22:42:50 -0000	1.13
+++ documentation/bugs.sgml	16 Oct 2003 12:33:26 -0000
@@ -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>
Index: tools/testrun
===================================================================
RCS file: /home/cvs/wine/tools/testrun,v
retrieving revision 1.5
diff -u -r1.5 testrun
--- tools/testrun	1 Jun 2002 02:55:52 -0000	1.5
+++ tools/testrun	16 Oct 2003 13:25:40 -0000
@@ -266,8 +266,8 @@
 	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;


More information about the wine-patches mailing list