aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash_test')
-rwxr-xr-xshell/ash_test/ash-getopts/getopt_test_libc_bug.tests4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash_test/ash-getopts/getopt_test_libc_bug.tests b/shell/ash_test/ash-getopts/getopt_test_libc_bug.tests
index 6c0781f20..fcaac81a2 100755
--- a/shell/ash_test/ash-getopts/getopt_test_libc_bug.tests
+++ b/shell/ash_test/ash-getopts/getopt_test_libc_bug.tests
@@ -1,6 +1,6 @@
# This test can fail with libc with buggy getopt() implementation.
# If getopt() wants to parse multi-option args (-abc),
-# it needs to remember a position withit current arg.
+# it needs to remember a position within current arg.
#
# If this position is kept as a POINTER, not an offset,
# and if argv[] ADDRESSES (not contents!) change, it blows up.
@@ -24,7 +24,7 @@ VAR111=NEWVAL; getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$
VAR222=NEWVAL; getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
VAR333=NEWVAL; getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'"
-# Sligntly different attempts to force reallocations
+# Slightly different attempts to force reallocations
echo
echo "*** optstring:'ac' args:-a -b -c -d e"