diff --git a/todo.sh b/todo.sh index 2a77dc5..766672a 100755 --- a/todo.sh +++ b/todo.sh @@ -314,7 +314,7 @@ actionUsage() if [ -f "$action" -a -x "$action" ]; then "$action" usage else - builtinActionUsage=$(actionsHelp | sed -ne "/^ ${actionName//\//\\/}\\( \\|\$\\)/,/^\$/p") + builtinActionUsage=$(actionsHelp | sed -n -e "/^ ${actionName//\//\\/} /,/^\$/p" -e "/^ ${actionName//\//\\/}$/,/^\$/p") if [ "$builtinActionUsage" ]; then echo "$builtinActionUsage" echo