対応しているコマンド
| コマンド名 | 構文 | 備考
|
|---|
| append | append varName ?value ...? |
|
| array anymore | array anymore arrayName searchId |
|
| array donesearch | array donesearch arrayName searchId |
|
| array get | array get arrayName ?pattern? |
|
| array names | array names arrayName ?pattern? | modeは対応していません。
|
| array nextelement | array nextelement arrayName searchId |
|
| array set | array set arrayName list |
|
| array size | array size arrayName |
|
| array startsearch | array startsearch arrayName |
|
| array unset | array unset arrayName ?pattern? |
|
| break | break |
|
| catch | catch script ?varName? |
|
| close | close channelId |
|
| concat | concat ?arg ...? |
|
| continue | continue |
|
| dict append | dict append dictionaryVariable key ?string ...? |
|
| dict create | dict create ?key value ...? |
|
| dict exists | dict exists dictionaryValue key ?key ...? |
|
| dict get | dict get dictionaryValue ?key ...? |
|
| dict incr | dict incr dictionaryVariable key ?increment? |
|
| dict keys | dict keys dictionaryValue ?globPattern? |
|
| dict lappend | dict lappend dictionaryVariable key ?value ...? |
|
| dict merge | dict merge ?dictionaryValue ...? |
|
| dict remove | dict remove dictionaryValue ?key ...? |
|
| dict replace | dict replace dictionaryValue ?key value ...? |
|
| dict set | dict set dictionaryVariable key ?key ...? value |
|
| dict size | dict size dictionaryValue |
|
| dict unset | dict unset dictionaryVariable key ?key ...? |
|
| dict values | dict values dictionaryValue ?globPattern? |
|
| eof | eof channelId |
|
| error | error message | info,codeは対応していません。
|
| eval | eval arg ?arg ...? |
|
| exit | exit ?returnCode? |
|
| expr | expr arg ?arg ...? | +,-,*,/,%,<,<=,==,=>,>,~,&,|,^,!,&&,||,…?…:…,$…,(…),"…",{…},[…]の演算子に対応しています。数学関数は対応していません。
|
| flush | flush channelId |
|
| for | for start test next body |
|
| foreach | foreach varname list body | 「foreach varlist1 list1 ?varlist2 list2 ... ? body」の構文は対応していません。
|
| format | format formatString ?arg ...? |
|
| gets | gets channelId ?varName? |
|
| glob | glob ?switches? pattern ?pattern ...? | switchesは-nocomplainのみ対応しています。
|
| global | global varname ?varname ...? |
|
| if | if expr1 ?then? body1 elseif expr2 ?then? body2 elseif ... ?else? ?bodyN? |
|
| incr | incr varName ?increment? |
|
| join | join list ?joinString? |
|
| lappend | lappend varName ?value ...? |
|
| lassign | lassign list ?varName ...? | 'lassign'は、Tcl8.5で追加されたコマンドです。
|
| lindex | lindex list ?index ...? |
|
| linsert | linsert list index element ?element ...? |
|
| list | list ?arg ...? |
|
| llength | llength list |
|
| lrange | lrange list first last |
|
| lrepeat | lrepeat count ?value ...? | 'lrepeat'は、Tcl8.5で追加されたコマンドです。
|
| lreplace | lreplace list first last ?element ...? |
|
| lsearch | lsearch ?options? list pattern | optionsは-index,-subindicesのみ対応しています。-index,-subindicesは、Tcl8.5で追加されたオプションです。
|
| lset | lset varName ?index ...? newValue |
|
| lsort | lsort ?options? list | optionsは-increasing,-decreasingのみ対応しています。
|
| open | open fileName ?access? | permissions,コマンドパイプラインは対応していません。
|
| proc | proc name args body |
|
| puts | puts ?-nonewline? ?channelId? string |
|
| rename | rename oldName newName |
|
| return | return ?string? | -code,-errorinfo,-errorcodeは対応していません。
|
| scan | scan string format ?varName ...? |
|
| seek | seek channelId offset ?origin? |
|
| set | set varName ?value? |
|
| source | source fileName |
|
| split | split string ?splitChars? |
|
| string compare | string compare string1 string2 | -nocase,-lengthは対応していません。
|
| string first | string first string1 string2 | startIndexは対応していません。
|
| string index | string index string charIndex |
|
| string last | string last string1 string2 | lastIndexは対応していません。
|
| string length | string length string |
|
| string match | string match pattern string | -nocaseは対応していません。
|
| string range | string range string first last |
|
| string repeat | string repeat string count |
|
| string reverse | string reverse string | 'string reverse'は、Tcl8.5a6で追加されたコマンドです。
|
| string tolower | string tolower string | first,lastは対応していません。
|
| string toupper | string toupper string | first,lastは対応していません。
|
| string trim | string trim string ?chars? |
|
| string trimleft | string trimleft string ?chars? |
|
| string trimright | string trimright string ?chars? |
|
| switch | switch ?options? string pattern body ?pattern body ...? | -regexpは対応していません。
|
| switch | switch ?options? string {pattern body ?pattern body ...?} | -regexpは対応していません。
|
| tell | tell channelId |
|
| unset | unset ?-nocomplain? ?--? ?name ...? |
|
| uplevel | uplevel ?level? arg ?arg ...? |
|
| upvar | upvar ?level? otherVar myVar ?otherVar myVar ...? |
|
| while | while test body |
|