diff options
| author | Drazen Borkovic <dborkov@amazon.com> | 2018-08-04 17:57:38 -0700 |
|---|---|---|
| committer | Toby Goodwin <toby@nqmail.org> | 2018-08-08 22:48:17 +0100 |
| commit | 3d2cd3500b6b9881ad86511acf29b39aba8551a4 (patch) | |
| tree | 1e5193d356688d3c2651f6d9d13df21e1a4394d7 | |
| parent | 674875fe55afd5f76f0f4dab3555ff283928545a (diff) | |
Cleaner string for test
| -rw-r--r-- | trip.rc | 28 |
1 files changed, 12 insertions, 16 deletions
@@ -718,22 +718,18 @@ submatch 'flag c && echo yes' yes 'flag c' submatch 'flag x +; flag x -' 'flag x -' 'setting x flag' # if-not stack if_state check -ss=( - 'L=()' - 'if (true) {' - ' if (false) {' - ' L=($L a1)' - ' }' - ' if not L=($L a2)' - '}' - 'if not L=($L a3)' - 'echo $L' -) - -s='' -for (a in $ss) { - s=$s$a$nl -} +s=' +L=() +if (true) { + if (false) { + L=($L a1) + } + if not L=($L a2) +} +if not L=($L a3) +echo $L +' + m=`{$rc -c $s} whatis -v s m if (! ~ $^m a2) { |