hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 038224f7e3ba9d8b1791ee736780762baae058d6
parent f9792ff218f9ce635a47e3769b8e28910cabbdf7
Author: Lennart Jablonka <humm@ljabl.com>
Date:   Sun, 25 Dec 2022 21:41:44 +0000

gen-stdlib: quote 'hash' and 'time'

In some shells (i.e., OpenBSD ksh) time and hash are something like
reserved words.  You need to quote them to use them as function
names.

Signed-off-by: Lennart Jablonka <humm@ljabl.com>

Diffstat:
Mscripts/gen-stdlib | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/gen-stdlib b/scripts/gen-stdlib @@ -814,7 +814,7 @@ hare_parse() { fi } -hash() { +'hash'() { gen_srcs hash \ hash.ha gen_ssa hash io fmt @@ -1302,7 +1302,7 @@ temp() { crypto::random encoding::hex errors fs io os path strio fmt } -time() { +'time'() { gen_srcs -plinux time \ +linux/functions.ha \ +linux/+'$(ARCH)'.ha \