From 2703e00201fdae3a3d78037f1e454f52a94699de Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Tue, 15 Nov 2022 18:00:16 -0600 Subject: [PATCH] Use /bin/sh; quote shell variables (#46) * On macOS, sh is /bin/sh not /usr/bin/sh * Quote shell variables correctly --- README.md | 4 ++-- README.text | 4 ++-- verbatim/makefile.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 944c6e2..f6d1786 100644 --- a/README.md +++ b/README.md @@ -90,9 +90,9 @@ or create a shell script (in `/usr/local/bin`, etc) `/usr/local/bin/AsmIIgs`: - #!/usr/bin/sh + #!/bin/sh - exec mpw AsmIIgs $@ + exec mpw AsmIIgs "$@" mpw uses the MPW `$Commands` variable to find the command, similar to `$PATH` on Unix. If the `$Commands` variable diff --git a/README.text b/README.text index 8c384d9..ff94f64 100644 --- a/README.text +++ b/README.text @@ -84,9 +84,9 @@ or create a shell script (in /usr/local/bin, etc) /usr/local/bin/AsmIIgs: -#!/usr/bin/sh +#!/bin/sh -exec mpw AsmIIgs $@ +exec mpw AsmIIgs "$@" mpw looks in the current directory and then in the $MPW:Tools: directory for the command to run. The MPW $Commands variable is not yet supported. diff --git a/verbatim/makefile.sh b/verbatim/makefile.sh index e6d4b3f..8d347e0 100644 --- a/verbatim/makefile.sh +++ b/verbatim/makefile.sh @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/bin/sh infile="$1"