Description of problem: The Japanese tail(1) man page still includes a description for the obsolete '+N' option to start tail'ing the file on line N. Older versions of tail allowed you to run tail +5 file.txt to start reading file.txt on line 5. This is ambiguous and obsolete and has been replaced with the -n option: tail -n +5 file.txt The English man page has a section describing how this is obsolete: '_POSIX2_VERSION' COMPATIBILITY ISSUES: On older systems, the leading '-' can be replaced by '+' in the obso- lete option syntax with the same meaning as in counts, and obsolete usage overrides normal usage when the two conflict. ... However, the Japanese man page indicates this is still valid: 書式 tail [<-|+>COUNTOPTIONS] ... ... オプション <-|+>COUNTOPTIONS このオプションは最初に指定した場合に限って認識される。 COUNT は 10 進数の数値。単位を表す文字 (‘b’, ‘k’, ‘m’) を後置したり (それ ぞれの意味は ‘-c’ のものと同じ)、行単位のカウントを指定する ‘l’ を 後置したり、他のオプション文字 (‘cqv’) を後置したりできる。何 も文字が後置されなかった場合は ‘l’ が指定されたのと同じことに な る。短いオプション形式 - と + は推奨されない。 Please update the Japanese tail(1) man page to indicate the '+N' syntax is obsolete. Version-Release number of selected component (if applicable): man-pages-ja-20060815-11.el5.noarch How reproducible: every time Steps to Reproduce: 1. export LANG=ja_JP.UTF-8 2. man 1 tail Actual results: man page indicates 'tail +N' is valid syntax Expected results: should instead describe 'tail -n +N' Additional info:
Fixed in man-pages-ja-20060815-14.el5.
Verified. # rpm -q man-pages-ja man-pages-ja-20060815-14.el5.noarch # export LANG=ja_JP.UTF-8 # man 1 tail (snip) -n, --lines=N 末尾 10 行の代わりに末尾 N 行を出力する。 (snip) `_POSIX2_VERSION´ 互換性問題: 古 いシステムでは、数を数える場合に廃止されたオプション書式と同じ目的として、‘-’ を ‘+’ で置き換え ることができる。互いが衝突した場合、廃止された用法は通常の用法を上書きする。この廃止された挙 動 は ‘_POSIX2_VERSION’ 環境変数で、有効もしくは無効にすることができるが、可搬性のあるスクリプトではこの 変数に依存した挙動を示すコマンドを回避すべきである。 例えば、曖昧な ‘tail - main.c’ よりも ‘tail -- - main.c’ もしくは ‘tail main.c’ を使い 、 曖 昧 な ‘tail -c 4’ よりも ‘tail -c4’ もしくは ‘tail -c 10 4’を使い、曖昧な ‘tail +4’ よりも ‘tail ./+4’ もしくは ‘tail -n +4’ を使う。‘_POSIX2_VERSION=199209’ を設定することでそれらの互換性問題の対処 を することができる。 (snip)
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0592.html
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: The old Japanese manual page of the 'tail' command contained the obsolete option '+N'.The updated package removes this issue.