Prefer /usr/bin/env and searching from PATH

This commit is contained in:
oxalica 2021-06-03 00:30:28 +08:00 committed by Tomas Babej
parent 2cb8f1d5ea
commit 3c402d4fb7
6 changed files with 6 additions and 6 deletions

View file

@ -130,7 +130,7 @@ class TestBug1436(TestCase):
This problem is entirely testing artifact, and not Taskwarrior.
"""
self.echo = Task(taskw=utils.binary_location("/bin/echo"))
self.echo = Task(taskw=utils.binary_location("echo", USE_PATH=True))
# One level of backshashes gets eaten by bash
# Verify with: $ echo xxx \\\\yyy zzz

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Test for TW-1883 (#1896 on Github)
# https://github.com/GothenburgBitFactory/taskwarrior/issues/1896

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
. bash_tap_tw.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# A test case for TW-2124.
# https://github.com/GothenburgBitFactory/taskwarrior/issues/2124

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
. bash_tap_tw.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
. bash_tap_tw.sh