Skip to content

Commit

Permalink
fix: Use shebang #!/usr/bin/env bash (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Dec 26, 2024
1 parent e15ad82 commit 5d2727f
Show file tree
Hide file tree
Showing 53 changed files with 54 additions and 54 deletions.
4 changes: 2 additions & 2 deletions tests/README
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ Writing Tests
-------------

The test script is written as a shell script. It should start
with the standard "#!/bin/bash" with copyright notices, and an
with the standard "#!/usr/bin/env bash" with copyright notices, and an
assignment to variable 'test_description', like this:

#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (c) 2005 Junio C Hamano
#
Expand Down
2 changes: 1 addition & 1 deletion tests/actions-test-lib.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

make_dummy_action()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/aggregate-results.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

[ "x$TERM" != "xdumb" ] && (
export TERM &&
Expand Down
2 changes: 1 addition & 1 deletion tests/t0000-config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='todo.sh configuration file location
Expand Down
2 changes: 1 addition & 1 deletion tests/t0001-null.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='todo.sh basic null functionality test.
Expand Down
2 changes: 1 addition & 1 deletion tests/t0002-actions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='todo.sh actions.d
Expand Down
2 changes: 1 addition & 1 deletion tests/t0100-code-nobacktick.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='no old-style backtick command substitution
Expand Down
2 changes: 1 addition & 1 deletion tests/t1000-addlist.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic add and list functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1010-add-date.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='test the date on add feature
Expand Down
2 changes: 1 addition & 1 deletion tests/t1020-addtolistfile.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic addto and list functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1030-addto-date.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='test the date on addto feature
Expand Down
2 changes: 1 addition & 1 deletion tests/t1040-add-priority.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='test the priority on add feature'
. ./test-lib.sh
Expand Down
2 changes: 1 addition & 1 deletion tests/t1100-replace.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic replace functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1200-pri.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic priority functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1250-listpri.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='list priority functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1300-ls.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='list functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1310-listcon.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='listcon functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1320-listproj.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='listproj functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1330-ls-highlighting.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='list highlighting
Expand Down
2 changes: 1 addition & 1 deletion tests/t1340-listescapes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='list with escape sequences
Expand Down
2 changes: 1 addition & 1 deletion tests/t1350-listall.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='listall functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1360-ls-project-context-highlighting.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='highlighting projects and contexts
Expand Down
2 changes: 1 addition & 1 deletion tests/t1380-ls-date-number-metadata-highlighting.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='highlighting date, item numbers and metadata
Expand Down
2 changes: 1 addition & 1 deletion tests/t1400-prepend.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic prepend functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1500-do.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='do functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1600-append.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic append functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1700-depri.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic depriority functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1800-del.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic del functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1850-move.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic move functionality
'
Expand Down
2 changes: 1 addition & 1 deletion tests/t1900-archive.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='archive functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1910-deduplicate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='deduplicate functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t1950-report.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='report functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t2000-multiline.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Multi-line functionality'

Expand Down
2 changes: 1 addition & 1 deletion tests/t2100-help.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='help functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t2110-help-action.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='built-in actions help functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t2120-shorthelp.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='shorthelp functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t2200-no-done-report-files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='todo.sh configuration with a sole todo.txt data file.
Expand Down
2 changes: 1 addition & 1 deletion tests/t6000-completion.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6010-completion-contexts.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash context completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6020-completion-projects.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash project completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6030-completion-tasks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash task number completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6040-completion-files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash todo file completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6050-completion-addons.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash add-on action completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6060-completion-addon-files.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash add-on action file completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6080-completion-path.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash completion with different path functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6090-completion-aliases.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash completion with different aliases functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t6100-completion-help.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Bash help completion functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t8000-actions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='custom actions functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t8010-listaddons.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='listaddons functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t8020-actions-help.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='custom actions help functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/t9999-testsuite_example.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='basic tests imported from previous framework
'
Expand Down
2 changes: 1 addition & 1 deletion tests/test-lib.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (c) 2005 Junio C Hamano
#
Expand Down
2 changes: 1 addition & 1 deletion tests/testshell.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

test_description='Providing an interactive shell in the proper environment'
. ./test-lib.sh
Expand Down

0 comments on commit 5d2727f

Please sign in to comment.