File: use-command-v.patch

package info (click to toggle)
libexplain 1.4.D001-17
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,248 kB
  • sloc: ansic: 156,043; makefile: 47,892; sh: 16,304; yacc: 1,898; awk: 245
file content (21 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: HÃ¥vard Flaget Aasen <haavard_aasen@yahoo.no>
Date: Tue, 16 Nov 2021 21:18:55 +0100
Subject: use command -v

---
 script/test_prelude.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/test_prelude.sh.in b/script/test_prelude.sh.in
index 7a29cc1..c6dfc14 100644
--- a/script/test_prelude.sh.in
+++ b/script/test_prelude.sh.in
@@ -113,7 +113,7 @@ test $? -eq 0 || no_result
 # diff things differs.  And it does, by a carriage return.
 if diff --strip-trailing-cr /dev/null /dev/null > /dev/null 2>&1
 then
-    diffpath=`which diff`
+    diffpath=`command -v diff`
     diff() {
         $diffpath --strip-trailing-cr "$@"
     }