summaryrefslogtreecommitdiff
path: root/shbrain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shbrain.sh')
-rwxr-xr-xshbrain.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shbrain.sh b/shbrain.sh
index 06cad02..572bd10 100755
--- a/shbrain.sh
+++ b/shbrain.sh
@@ -8,7 +8,7 @@ do
LINE=${LINE[@]:0:$LEN}
### Parsing potential shcmd
- if [[ $LINE =~ :([a-zA-Z]*)!.*:shcmd ]]; then
+ if [[ $LINE =~ :([^!]*)!.*:shcmd ]]; then
EXPAND=(${LINE})
CMD=${EXPAND[4]#:}
ARGS=${EXPAND[*]:5}