Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX: Adapt test for OS X.

POSIX sed doesn't understand the \w atom; use [A-Z] instead; it's also more precise.
  • Loading branch information...
commit c0c93c8c0c1849ddb2492910cafb6dad4a3468ad 1 parent 7acb521
Ingo Karkat inkarkat authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/t2100-help.sh
8 tests/t2100-help.sh
View
@@ -11,21 +11,21 @@ This test covers the help output.
# Note: To avoid having to adapt the test whenever the help documentation
# slightly changes, only check for the section headers.
test_todo_session 'help output' <<EOF
->>> todo.sh help | sed '/^ \w/!d'
+>>> todo.sh help | sed '/^ [A-Z]/!d'
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
Options:
Built-in Actions:
EOF
test_todo_session 'verbose help output' <<EOF
->>> todo.sh -v help | sed '/^ \w/!d'
+>>> todo.sh -v help | sed '/^ [A-Z]/!d'
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
Options:
Built-in Actions:
EOF
test_todo_session 'very verbose help output' <<EOF
->>> todo.sh -vv help | sed '/^ \w/!d'
+>>> todo.sh -vv help | sed '/^ [A-Z]/!d'
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
Options:
Environment variables:
@@ -34,7 +34,7 @@ EOF
make_action "foo"
test_todo_session 'help output with custom action' <<EOF
->>> todo.sh -v help | sed '/^ \w/!d'
+>>> todo.sh -v help | sed '/^ [A-Z]/!d'
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
Options:
Built-in Actions:
Please sign in to comment.
Something went wrong with that request. Please try again.