From 0cd01b51b46f270a8232f3b525bcde06ffe58c4e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 7 May 2010 04:05:52 +0200 Subject: noise: allow '#'s in input and '_' in module-names --- noise | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'noise') 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 -- cgit v1.2.3