[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Looking at source code for tail.c from RHEL ES3 coreutils-4.5.3 there is
this comment: (where P is the command line parameters being evaluated,
and POSIX textual version 1003.1-2001 is represented as the integer
200112):

  /* If P starts with `+' and the POSIX version predates 1003.1-2001,
     or if P starts with `-N' (where N is a digit), or `-l', then it
     is obsolescent.  Return zero otherwise.  */

So, by setting _POSIX2_VERSION=200112 one should expect 'tail -1
somefile' to barf.  It doesn't.  However, looking further at tail.c
shows that parse_obsolescent_option() continues after determining
obsolescence and correctly parses +N, -N despite knowing they are
obsolete.  (backwards compatibility == good)

However, if POSIXLY_CORRECT is set in the environment, then tail will
NOT force the backwards compatibility and the user will get an error
like this:

   tail: `-1' option is obsolete; use `-n 1'
   
-Jim P.




</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00907" href="msg00907.html">[ale] Re: Installing j2se on RHEL 3?</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li><strong><a name="00927" href="msg00927.html">[ale] Re: Installing j2se on RHEL 3?</a></strong>
<ul><li><em>From:</em> mdhirsch at gmail.com (Michael Hirsch)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00902" href="msg00902.html">[ale] Re: Installing j2se on RHEL 3?</a></strong>
<ul><li><em>From:</em> joe at madewell.com (Joe Steele)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00905.html">[ale] b'bye</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00907.html">[ale] Re: Installing j2se on RHEL 3?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00914.html">[ale] Re: Installing j2se on RHEL 3?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00907.html">[ale] Re: Installing j2se on RHEL 3?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00906"><strong>Date</strong></a></li>
<li><a href="threads.html#00906"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>