From 308a14f85158f1545000499a64bc170d688a0db9 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 10 Jan 2019 18:48:02 -0500 Subject: Import /usr/src/bin/sh from FreeBSD 12.0-RELEASE --- bin/cash/tests/builtins/read5.0 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bin/cash/tests/builtins/read5.0 (limited to 'bin/cash/tests/builtins/read5.0') diff --git a/bin/cash/tests/builtins/read5.0 b/bin/cash/tests/builtins/read5.0 new file mode 100644 index 00000000..60bca1f7 --- /dev/null +++ b/bin/cash/tests/builtins/read5.0 @@ -0,0 +1,32 @@ +# $FreeBSD: releng/12.0/bin/sh/tests/builtins/read5.0 218821 2011-02-18 20:51:13Z jilles $ + +unset LC_ALL +LC_CTYPE=en_US.ISO8859-1 +export LC_CTYPE + +# Note: the first and last characters are not whitespace. +# Exclude backslash and newline. +bad1=`printf %03o \'\\\\` +bad2=`printf %03o \'' +'` +e= +for i in 0 1 2 3; do + for j in 0 1 2 3 4 5 6 7; do + for k in 0 1 2 3 4 5 6 7; do + case $i$j$k in + 000|$bad1|$bad2) continue ;; + esac + e="$e\\$i$j$k" + done + done +done +e=`printf "$e"` +[ "${#e}" = 253 ] || echo length bad + +r1=`printf '%s\n' "$e" | { read -r x; printf '%s' "$x"; }` +[ "$r1" = "$e" ] || echo "read with -r bad" +r2=`printf '%s\n' "$e" | { read x; printf '%s' "$x"; }` +[ "$r2" = "$e" ] || echo "read without -r bad 1" +IFS= +r3=`printf '%s\n' "$e" | { read x; printf '%s' "$x"; }` +[ "$r3" = "$e" ] || echo "read without -r bad 2" -- cgit 1.4.1 option value='grep'>log msg
path: root/merge.c (unfollow)
Commit message (Expand)Author
2021-12-22Support reading gzipped data in merge HEAD masterJune McEnroe
2021-12-01DecayJune McEnroe
2021-10-17Remove capsicum supportJune McEnroe
2021-10-17Build chroot only for OpenBSD, remove rc scriptJune McEnroe
2021-09-28Fix backspace on OpenBSDJune McEnroe
2021-09-27Handle KCGI_EXIT gracefullyJune McEnroe
2021-09-27Call msync(2) after modifying tilesJune McEnroe
2021-09-27Copy CSVs to web directory from snapshot.shJune McEnroe
2021-09-27Extract chroot.tar with -p, install to WEBROOTJune McEnroe
2021-09-26OpenBSD: Copy appropriate files for chrootJune McEnroe
2021-09-26OpenBSD: pledge(2) imageJune McEnroe
2021-09-26OpenBSD: pledge(2) clientJune McEnroe
2021-09-26OpenBSD: pledge(2) serverJune McEnroe
2021-09-24Link with -lncurseswJune McEnroe
2021-09-20Replace strlcpy with snprintfJune McEnroe
2021-09-20Replace kqueue with poll, remove libutil dependencyJune McEnroe
2021-02-04Update play@ascii.town descriptionJune McEnroe
2021-02-04Replace donation button with LiberapayJune McEnroe
2020-06-25Use DisableForwarding in sshd_configJune McEnroe
2019-12-19Remove READMEJune McEnroe
2019-12-15Update git URLsJune McEnroe
2019-08-05Add buymeacoffee linkJune McEnroe
2019-07-27Use braces in MakefileJune McEnroe
2019-07-08Remove NetHack from indexJune McEnroe
2019-04-08Don't install rc.kfcgi eitherJune McEnroe
2019-03-28Remove rc.kfcgiJune McEnroe
2019-01-16Reformat index.html with explore linkJune McEnroe
2019-01-16Return false from keydown handler in exploreJune McEnroe
2019-01-08Draw lines to tile edgeJune McEnroe
2019-01-08Factor out default pathsJune McEnroe
2019-01-08Remove incorrect default coordinatesJune McEnroe
2019-01-07Set img src when explore fragment changesJune McEnroe
2019-01-07Compress PNG data in imageJune McEnroe
2019-01-07madvise MADV_NOCORE in imageJune McEnroe
2019-01-07Add license notice to explore JavaScriptJune McEnroe
2019-01-07Add Q/Home binding in exploreJune McEnroe
2019-01-07Fix explore image URLJune McEnroe
2019-01-07Add HOME button, ssh link, AGPL notice to exploreJune McEnroe
2019-01-06Add meta viewport to exploreJune McEnroe
2019-01-06Set background and max-width in exploreJune McEnroe
2019-01-06Swallow writes after the connection is closedJune McEnroe
2019-01-06Handle KCGI_HUPJune McEnroe
2019-01-06Install html filesJune McEnroe