• R/O
  • SSH
  • HTTPS

ttssh2: 提交


Commit MetaInfo

修订版7958 (tree)
时间2019-08-15 18:02:29
作者kazuya_jimba

Log Message

filecopy コマンドの result に格納される値を表にした。

更改概述

差异

--- trunk/doc/en/html/macro/command/filecopy.html (revision 7957)
+++ trunk/doc/en/html/macro/command/filecopy.html (revision 7958)
@@ -29,6 +29,39 @@
2929 If the file is copy successfully, the system variable "result" is set to 0. Otherwise, "result" is set to non-zero. (version 4.104 or later)
3030 </p>
3131
32+<h2>Value of the system variable "result"</h2>
33+
34+<p>
35+As a result of this command, the system variable "result" is set to one of the following values depending on the copy status:
36+</p>
37+
38+<table>
39+ <tr>
40+ <th>Value</th>
41+ <th>Status</th>
42+ </tr>
43+ <tr>
44+ <td>-4</td>
45+ <td>Copy failed.</td>
46+ </tr>
47+ <tr>
48+ <td>-3</td>
49+ <td>A file &lt;file1&gt; and file &lt;file2&gt; is same of name.</td>
50+ </tr>
51+ <tr>
52+ <td>-2</td>
53+ <td>Be used invalid characters to file &lt;file2&gt;.</td>
54+ </tr>
55+ <tr>
56+ <td>-1</td>
57+ <td>Be used invalid characters to file &lt;file1&gt;.</td>
58+ </tr>
59+ <tr>
60+ <td>0</td>
61+ <td>Copy succeeded.</td>
62+ </tr>
63+</table>
64+
3265 <h2>Example</h2>
3366
3467 <pre class="macro-example">
--- trunk/doc/ja/html/macro/command/filecopy.html (revision 7957)
+++ trunk/doc/ja/html/macro/command/filecopy.html (revision 7958)
@@ -26,9 +26,42 @@
2626 <p>
2727 ファイル &lt;file1&gt; をコピーし、ファイル &lt;file2&gt; を作成する。<br>
2828 &lt;file2&gt; がすでに存在する場合は上書きされる。&lt;file1&gt; と &lt;file2&gt; は違う名前でなければならない。<br>
29-ファイルのコピーが成功した場合、システム変数 result に 0 が格納される。それ以外の場合, result に 0 以外が格納される。 (バージョン 4.104 以降)
29+ファイルのコピーが成功した場合、システム変数 result に 0 が格納される。それ以外の場合 result に 0 以外が格納される。(バージョン 4.104 以降)
3030 </p>
3131
32+<h2>システム変数 result の値</h2>
33+
34+<p>
35+このコマンドの結果、コピーの状態に応じて以下のうちの一つの値がシステム変数 result に格納される。
36+</p>
37+
38+<table>
39+ <tr>
40+ <th>値</th>
41+ <th>状態</th>
42+ </tr>
43+ <tr>
44+ <td>-4</td>
45+ <td>コピーに失敗した。</td>
46+ </tr>
47+ <tr>
48+ <td>-3</td>
49+ <td>ファイル &lt;file1&gt; とファイル &lt;file2&gt; が同じ名前である。</td>
50+ </tr>
51+ <tr>
52+ <td>-2</td>
53+ <td>ファイル &lt;file2&gt; は、ファイル名に利用できない文字を含んでいる。</td>
54+ </tr>
55+ <tr>
56+ <td>-1</td>
57+ <td>ファイル &lt;file1&gt; は、ファイル名に利用できない文字を含んでいる。</td>
58+ </tr>
59+ <tr>
60+ <td>0</td>
61+ <td>コピーに成功した。</td>
62+ </tr>
63+</table>
64+
3265 <h2>例</h2>
3366
3467 <pre class="macro-example">
Show on old repository browser