summaryrefslogtreecommitdiffstats
path: root/noise
diff options
context:
space:
mode:
authorroot <root@shack.(none)>2010-05-07 04:05:52 +0200
committerroot <root@shack.(none)>2010-05-07 04:05:52 +0200
commit0cd01b51b46f270a8232f3b525bcde06ffe58c4e (patch)
tree0250a4e9b2d719be4792becb3f4fbbf89c0cdead /noise
parent0b25165144fb6a6c0e63df62bf282f13465baa82 (diff)
noise: allow '#'s in input and '_' in module-names
Diffstat (limited to 'noise')
-rwxr-xr-xnoise3
1 files changed, 2 insertions, 1 deletions
diff --git a/noise b/noise
index 2b63acbe..f979c34c 100755
--- a/noise
+++ b/noise
@@ -77,7 +77,8 @@ readline() {
{ read && echo "$REPLY" ; } | sed -rn "
s/[']//g
s/~%/\n/g
- s:^/([a-z]+)([[:space:]]+(.*))?$:command=\1; args='\3';:p;t
+ s/([^\\])#/\1\\\\#/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
s:.*:command='$noise_default_command'; args='&';:p;t