Merge pull request #101 from Thann/grep_options_fix
ensure GREP_OPTIONS doesn't break listproj output
This commit is contained in:
@@ -114,4 +114,9 @@ test_todo_session 'listproj from combined open + done tasks' <<'EOF'
|
|||||||
+prj01
|
+prj01
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
test_todo_session 'listproj with GREP_OPTIONS disruption' <<'EOF'
|
||||||
|
>>> GREP_OPTIONS=-n todo.sh listproj
|
||||||
|
+prj01
|
||||||
|
EOF
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|||||||
3
todo.sh
3
todo.sh
@@ -467,6 +467,9 @@ OVR_TODOTXT_DEFAULT_ACTION="$TODOTXT_DEFAULT_ACTION"
|
|||||||
OVR_TODOTXT_SORT_COMMAND="$TODOTXT_SORT_COMMAND"
|
OVR_TODOTXT_SORT_COMMAND="$TODOTXT_SORT_COMMAND"
|
||||||
OVR_TODOTXT_FINAL_FILTER="$TODOTXT_FINAL_FILTER"
|
OVR_TODOTXT_FINAL_FILTER="$TODOTXT_FINAL_FILTER"
|
||||||
|
|
||||||
|
# Prevent GREP_OPTIONS from malforming grep's output
|
||||||
|
GREP_OPTIONS=""
|
||||||
|
|
||||||
# == PROCESS OPTIONS ==
|
# == PROCESS OPTIONS ==
|
||||||
while getopts ":fhpcnNaAtTvVx+@Pd:" Option
|
while getopts ":fhpcnNaAtTvVx+@Pd:" Option
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user