diff --git a/tests/lib/libc/net/t_protoent.sh b/tests/lib/libc/net/t_protoent.sh index 322d426a29bb..6ecfa3fa7c5e 100644 --- a/tests/lib/libc/net/t_protoent.sh +++ b/tests/lib/libc/net/t_protoent.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_protoent.sh,v 1.2 2012/09/03 15:32:18 christos Exp $ +# $NetBSD: t_protoent.sh,v 1.3 2022/11/28 17:09:52 jschauma Exp $ # # Copyright (c) 2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -67,15 +67,15 @@ protoent_body() n = split(names[key], ar); printf "name=%s, proto=%s, aliases=", ar[1], proto; for (i=2; i<=n; i++) { - if (i>2) { - printf " "; - } - printf "%s", ar[i]; + if (i>2) { + printf " "; + } + printf "%s ", ar[i]; } printf "\n"; delete ar; } - } + } ' | sort >exp # run test program