.\" $XFree86: xc/config/util/revpath.man,v 1.2 2001/01/27 18:19:55 dawes Exp $ .\" .\" Copyright (c) 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Tue Jan 9 22:48:16 JST 2001 .\" by FUJIWARA Teruyoshi .\" Updated Fri Oct 12 01:13:51 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .TH REVPATH 1 "Version 4.1.0" "XFree86" .SH 名前 .\"0 revpath \- generate a relative path that can be used to undo a change-directory revpath \- ディレクトリ変更を取り消すために使える相対パスを生成する .SH 書式 .B revpath .I path .SH 説明 .\"0 The .\"0 .I revpath .\"0 program prints out a relative path that is the ``reverse'' or ``inverse'' of .\"0 .IR path . .I revpath プログラムは .IR path を「逆転」あるいは「反転」させて得られる相対パスを出力する。 .\"0 Start with two directories .\"0 .I top .\"0 and .\"0 .IR bottom , .\"0 with the latter below the former, and .\"0 .I path .\"0 is the location of .\"0 .I bottom .\"0 relative to .\"0 .IR top . まず 2 つのディレクトリ .I top および .IR bottom を上から下へと見ていくと、 .I path は .IR top に対する .I bottom の相対位置である。 .\"0 The output of .\"0 .I revpath .\"0 is the location of .\"0 .I top .\"0 relative to .\"0 .IR bottom . .I revpath の出力は .IR bottom に対する .I top の相対位置である。 .\"0 The resulting path contains a trailing `/' character when the result is .\"0 non-trivial. 結果が自明でない時は、得られるパスの末尾に `/' が付く。 .\"0 If .\"0 .I path .\"0 is equivalent to `.', the resulting output is empty. .I path が `.' と等価になる場合は、出力結果は空となる。 .\"0 If .\"0 .I path .\"0 is invalid in some way (e.g., doesn't represent the path to a subdirectory) .\"0 the output is also empty and no error messages are ever generated. .I path が何らかの理由(例: サブディレクトリへのパスを示していない)で不正な場合 も出力は空になる。この場合であってもエラーメッセージは出力されない。 .SH 診断 .\"0 There are no diagnostics. Error conditions are silently ignored, and the .\"0 exit status is always 0. エラー診断はできない。エラー状態は報告なしで無視され、 終了ステータスは常に 0 である。 .SH バグ .\"0 It isn't possible to reverse arbitrary relative paths. 任意の相対パスを反転させることができない。 .\"0 If any path element between the two end points of .\"0 .I path .\"0 is a symbolic link, the results will probably be incorrect. .I path にシンボリックリンクのパス要素が含まれる場合、 たぶん間違った結果が得られる。