sh: Add simple tests for printf.

These are not meant as a replacement for tools/regression/usr.bin/printf/*
but to detect errors specific to making it a shell builtin.
This commit is contained in:
Jilles Tjoelker 2010-11-05 21:47:58 +00:00
parent b38fd2d93c
commit 5aa39e6a7e
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# $FreeBSD$
[ "$(printf '%c\0%s%d' x '\' 010 | tr '\0' Z)" = 'xZ\8' ]

View file

@ -0,0 +1,3 @@
# $FreeBSD$
[ "$(printf '%cZ%s%d' x '\' 010)" = 'xZ\8' ]