Bug 551471 - an obsolete option '+' is described in the Japanese man page of the tail command
Summary: an obsolete option '+' is described in the Japanese man page of the tail command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: man-pages-ja
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Akira TAGOH
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-30 21:56 UTC by Jeff Bastian
Modified: 2018-10-27 12:19 UTC (History)
4 users (show)

Fixed In Version: man-pages-ja-20060815-14.el5
Doc Type: Bug Fix
Doc Text:
The old Japanese manual page of the 'tail' command contained the obsolete option '+N'.The updated package removes this issue.
Clone Of:
: 551474 551476 (view as bug list)
Environment:
Last Closed: 2010-08-04 09:42:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0592 0 normal SHIPPED_LIVE man-pages-ja bug fix update 2010-08-04 09:42:01 UTC

Description Jeff Bastian 2009-12-30 21:56:30 UTC
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:

Comment 4 Akira TAGOH 2010-07-21 11:08:41 UTC
Fixed in man-pages-ja-20060815-14.el5.

Comment 6 Kenichi Takemura 2010-08-03 22:52:05 UTC
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)

Comment 8 errata-xmlrpc 2010-08-04 09:42:03 UTC
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

Comment 9 Florian Nadge 2010-08-04 13:23:41 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.