summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-09 15:37:29 +0200
committertv <tv@xso>2011-09-09 15:37:29 +0200
commit6a0a39ab43ee2754c8919328aea53b9597621667 (patch)
treefb98e763f8165d8ab034e46372a37013ff0f80e6
parentf2b6ac7c5d777e168c4b2925cc9798aca9cd3a2d (diff)
//noise/modules/help: use BRE @sed
-rwxr-xr-xnoise/modules/help6
1 files changed, 3 insertions, 3 deletions
diff --git a/noise/modules/help b/noise/modules/help
index bc4c2931..0763f3a0 100755
--- a/noise/modules/help
+++ b/noise/modules/help
@@ -7,10 +7,10 @@ case "$1" in
done 2>/dev/null
done
## print all documented built-in commands
- sed -rn 's:^noise_([a-z]+)\(\) \{ # (.+)?$:\1 \2:p' "$NOISE"
- } | sort | uniq | sed -rn '
+ sed -n 's:^noise_\([a-z]\+\)() { # \(.\+\)\?$:\1 \2:p' "$NOISE"
+ } | sort | uniq | sed -n '
$s/$//
- s:^([a-z]+) (.+):type /\1 to \2:p' ;;
+ s:^\([a-z]\+\) \(.\+\):type /\1 to \2:p' ;;
(*)
## call
for directory in `echo "$NOISE_PATH" | tr : \ ` ; do