opnsense-src/tools/regression/bin/sh/builtins/printf1.0
Jilles Tjoelker 5aa39e6a7e 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.
2010-11-05 21:47:58 +00:00

3 lines
71 B
Text

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