Module Name: src Committed By: tsutsui Date: Sat Aug 20 20:50:41 UTC 2022
Modified Files: src/distrib/atari/floppies/common: dot.profile Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/distrib/atari/floppies/common/dot.profile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/atari/floppies/common/dot.profile diff -u src/distrib/atari/floppies/common/dot.profile:1.8 src/distrib/atari/floppies/common/dot.profile:1.9 --- src/distrib/atari/floppies/common/dot.profile:1.8 Thu Jan 9 19:17:41 2020 +++ src/distrib/atari/floppies/common/dot.profile Sat Aug 20 20:50:41 2022 @@ -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 @@ if [ "X${DONEPROFILE}" = "X" ]; then # 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