summaryrefslogtreecommitdiff
path: root/trip.rc
diff options
context:
space:
mode:
Diffstat (limited to 'trip.rc')
-rw-r--r--trip.rc28
1 files changed, 12 insertions, 16 deletions
diff --git a/trip.rc b/trip.rc
index 747ad22..5db768e 100644
--- a/trip.rc
+++ b/trip.rc
@@ -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) {