Browse Subversion Repository
Log of /branches/ttcomtester/tests/params_array.bat
Revision 10521 - (view) (download) (as text) (annotate) - [select for diffs] Modified Fri Jan 20 16:03:38 2023 UTC (13 months, 2 weeks ago) by zmatsuo File length: 235 byte(s) Diff to previous 6434 add communication test tool Revision 6434 - (view) (download) (as text) (annotate) - [select for diffs] Added Thu Jul 7 11:46:02 2016 UTC (7 years, 8 months ago) by doda Original Path: trunk/tests/params_array.bat File length: 235 byte(s) システム変数 params の追加 今までの param1 ~ param9 を配列にした物 [Ttssh2-devel 3025] ・現在の param1 ~ param9 とは別に配列 params にもパラメータを格納する ・param1 ~ param9 と params の値は同期等しない。 param1 を書き換えても params[1] は変化しない。逆も同様。 ・params の最大値には制限をかけない。10 番目以降にもアクセス可能とする。 [とりあえず現在の仕様] ・param1 ~ param9 は params[1] ~ params[9] としてアクセス可能。 ・params[0] にはとりあえずコマンドライン全体を入れておく (awkの$0風) ・パラメータが 10 以上有る場合は paramcnt も 10 以上の値を取る 以前の仕様(paramcntの最大値は9)と非互換 ・パラメータの数が少なくても param1 ~ param9 は常に確保されているが、 params は paramcnt の値までしか確保されない。 ⇒ paramcnt==3 の時に params[4] へのアクセスは Index out of range This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
|