summaryrefslogtreecommitdiffstats
path: root/noise
diff options
context:
space:
mode:
authorroot <root@shack.(none)>2010-05-07 04:50:54 +0200
committerroot <root@shack.(none)>2010-05-07 04:50:54 +0200
commit8b7cd604d16b5f01128dda2927dde2c8dfe1f2dd (patch)
treebb6d235a20438d7350c1ac5c2b8c153de20d85cf /noise
parentc47b0ac32302fdbeed13f45a82d3e8c420de8fbd (diff)
noise: escape '<' and '>' in reader
Diffstat (limited to 'noise')
-rwxr-xr-xnoise2
1 files changed, 1 insertions, 1 deletions
diff --git a/noise b/noise
index f979c34c..cb4b8531 100755
--- a/noise
+++ b/noise
@@ -77,7 +77,7 @@ readline() {
{ read && echo "$REPLY" ; } | sed -rn "
s/[']//g
s/~%/\n/g
- s/([^\\])#/\1\\\\#/g
+ s/([^\\])([#<>])/\1\\\\\2/g
s:^/([a-z_]+)([[:space:]]+(.*))?$:command=\1; args='\3';:p;t
s@^([[:alnum:]_/+-]+):[[:space:]]*(.*)@command=lang; args='\1 \2';@p;t
s@^\![[:space:]]*(.*)@command=play; args='\1';@p;t