emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 42766f95e5c: * build-aux/make-info-dir: Avoid bashism (bug#7048


From: Ulrich Müller
Subject: emacs-29 42766f95e5c: * build-aux/make-info-dir: Avoid bashism (bug#70484).
Date: Tue, 23 Apr 2024 15:11:17 -0400 (EDT)

branch: emacs-29
commit 42766f95e5c0e7eb9e21db964ed93c7e093cc0b9
Author: Ulrich Müller <ulm@gentoo.org>
Commit: Ulrich Müller <ulm@gentoo.org>

    * build-aux/make-info-dir: Avoid bashism (bug#70484).
---
 build-aux/make-info-dir | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/build-aux/make-info-dir b/build-aux/make-info-dir
index e5f4972902f..631fe533e69 100755
--- a/build-aux/make-info-dir
+++ b/build-aux/make-info-dir
@@ -33,7 +33,8 @@
 
 ## Header contains non-printing characters, so this is more
 ## reliable than using awk.
-cat <"${1?}" || exit
+test $# -ge 2 || exit 1
+cat <"$1"
 shift
 
 exec "${AWK-awk}" '
@@ -101,4 +102,4 @@ exec "${AWK-awk}" '
       if (data[dircat])
         printf "\n%s\n%s", topic[dircat], data[dircat]
   }
-' "${@?}"
+' "$@"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]