shiftbrace
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | shiftbrace [2008/11/30 19:14] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: shiftbrace.txt, | ||
| + | ======Synopsis====== | ||
| + | $__shiftbrace__(< | ||
| + | |||
| + | ======Returns: | ||
| + | If the value of the named variable begins with a braced expression | ||
| + | (surrounded by curly braces), the expression will be removed from that | ||
| + | variable and the inside of the expression will be returned. | ||
| + | |||
| + | If the value of the named variable does not begin with a braced expression, | ||
| + | then the variable is not changed and the empty value is returned. | ||
| + | |||
| + | Extra spaces may be important! | ||
| + | |||
| + | ======Examples: | ||
| + | < | ||
| + | /assign qwer {asdf zxcv} {zxcv asdf qwer} one two | ||
| + | /eval echo $shiftbrace(qwer) | ||
| + | /eval echo $shiftbrace(qwer) | ||
| + | /eval echo $shiftbrace(qwer) | ||
| + | </ | ||
shiftbrace.txt · Last modified: 2008/11/30 19:14 by 127.0.0.1
