summary refs log tree commit diff
path: root/bin/cash/tests/parser/func1.0
blob: dac9cd9c9a2359d7cfe1488dbf72d639a45c7a7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $FreeBSD: releng/12.0/bin/sh/tests/parser/func1.0 214291 2010-10-24 20:45:13Z jilles $
# POSIX does not require these bytes to work in function names,
# but making them all work seems a good goal.

failures=0
unset LC_ALL
export LC_CTYPE=en_US.ISO8859-1
i=128
set -f
while [ "$i" -le 255 ]; do
	c=$(printf \\"$(printf %o "$i")")
	ok=0
	eval "$c() { ok=1; }"
	$c
	ok1=$ok
	ok=0
	"$c"
	if [ "$ok" != 1 ] || [ "$ok1" != 1 ]; then
		echo "Bad results for character $i" >&2
		: $((failures += 1))
	fi
	unset -f $c
	i=$((i+1))
done
exit $((failures > 0))
'nohover-highlight'> Needed by sh. 2018-08-04Define A_ITALIC if not definedJune McEnroe System ncurses on macOS doesn't define it. At least not in El Capitan. 2018-08-04Do not free const string portJune McEnroe 2018-08-04Split source into several filesJune McEnroe Can't believe I have to do this. 2018-08-04Exit on zero readJune McEnroe 2018-08-04Handle nick errorsJune McEnroe 2018-08-04Handle /nick and /quitJune McEnroe /quit doesn't actually... quit, right now. The only way to know that the connection is closed is tls_read returning zero, it seems. 2018-08-04Track own nickJune McEnroe 2018-08-04Word all status messages in presentJune McEnroe 2018-08-03Handle inputJune McEnroe This turned out a lot better than expected. Still a long way to go in terms of line-editing, but at least backspace works! 2018-08-03Track own usernameJune McEnroe So that we can colour our own messages correctly. 2018-08-03Use a wide pad for the topicJune McEnroe 2018-08-03Ignore NOTICEs not sent to the channelJune McEnroe 2018-08-03Handle KICK and NICKJune McEnroe 2018-08-03Continue on EINTR from pollJune McEnroe Resizing the terminal causes it. 2018-08-03Handle ACTIONsJune McEnroe 2018-08-03Use more octal char literalsJune McEnroe I might be coming around to octal. 2018-08-03Send a WHO in response to NAMES to get usernamesJune McEnroe Other than this slight hack, I think coloring by username rather than nick is a much better idea. 2018-08-03Colorize nicks and channelsJune McEnroe 2018-08-03Add support for mIRC colorsJune McEnroe 2018-08-03Handle bold, italic, underlineJune McEnroe 2018-08-03Add prift function for "prefix shift"June McEnroe Forgive me. 2018-08-03Link with -lcurseswJune McEnroe 2018-08-02Use libtls "compat" ciphersJune McEnroe irc.mozilla.org, using GnuTLS, doesn't support *any* of the "secure" ciphers! 2018-08-02Add UI and handle some kinds of server messagesJune McEnroe Seems like handling input is going to be the worst thing ever. 2018-08-02Add chroot.tar targetJune McEnroe