Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/atari/floppies/common Fix yet another "[: SMALL test...
details: https://anonhg.NetBSD.org/src/rev/f809e5b7aa34
branches: trunk
changeset: 369522:f809e5b7aa34
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Aug 20 20:50:41 2022 +0000
description:
Fix yet another "[: SMALL test, no fallback usage" error on installation.
The same problem as PR/54835 of the miniroot scripts, i.e.
avoid and replace use of -o binary primary marked obsolescent
by POSIX.1-2017:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_12
8_16
Noticed on installation of NetBSD 9.3 on TT030, and
maybe should be pulled up to netbsd-9.
diffstat:
distrib/atari/floppies/common/dot.profile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r f2a62fd0d535 -r f809e5b7aa34 distrib/atari/floppies/common/dot.profile
--- a/distrib/atari/floppies/common/dot.profile Sat Aug 20 20:02:22 2022 +0000
+++ b/distrib/atari/floppies/common/dot.profile Sat Aug 20 20:50:41 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.8 2020/01/09 19:17:41 martin Exp $
+# $NetBSD: dot.profile,v 1.9 2022/08/20 20:50:41 tsutsui Exp $
#
# Copyright (c) 1995 Jason R. Thorpe
# Copyright (c) 1994 Christopher G. Demetriou
@@ -95,7 +95,7 @@
# Check if the answer is valid (in range). Note that an answer
# < 0 cannot happen because the sed(1) above also removes the
# sign.
- if [ -z "$_ans" -o "$_ans" -ge $_num ]; then
+ if [ -z "$_ans" ] || [ "$_ans" -ge $_num ]; then
echo "You entered an invalid response, please try again."
continue
fi
Home |
Main Index |
Thread Index |
Old Index