• Home
  • Raw
  • Download

Lines Matching refs:PRINTF

11 PRINTF="$(which printf)"
13 testing "text" "$PRINTF TEXT" "TEXT" "" ""
14 testing "escapes" "$PRINTF 'one\ntwo\n\v\t\r\f\e\b\athree'" \
16 testing "%b escapes" "$PRINTF %b 'one\ntwo\n\v\t\r\f\e\b\athree'" \
18 testing "null" "$PRINTF 'x\0y' | od -An -tx1" ' 78 00 79\n' "" ""
19 testing "trailing slash" "$PRINTF 'abc\'" 'abc\' "" ""
21 testing "not octal" "$PRINTF '\9'" '\9' "" ""
22 testing "hex" "$PRINTF 'A\x1b\x2B\x3Q\xa' | od -An -tx1" \
24 testing "%x" "$PRINTF '%x\n' 0x2a" "2a\n" "" ""
26 testing "%d 42" "$PRINTF %d 42" "42" "" ""
27 testing "%d 0x2a" "$PRINTF %d 0x2a" "42" "" ""
28 testing "%d 052" "$PRINTF %d 052" "42" "" ""
31 "$PRINTF '%3s,%.3s,%10s,%10.3s' abcde fghij klmno pqrst" \
37 testing "extra args" "$PRINTF 'abc%s!%ddef\n' X 42 ARG 36" \
40 testing "'%3c'" "$PRINTF '%3c' x" " x" "" ""
41 testing "'%-3c'" "$PRINTF '%-3c' x" "x " "" ""
42 testing "'%+d'" "$PRINTF '%+d' 5" "+5" "" ""
46 "$PRINTF '%5d%4d' 1 21 321 4321 54321" " 1 21 321432154321 0" "" ""
47 testing "'%c %c' 78 79" "$PRINTF '%c %c' 78 79" "7 7" "" ""
48 testing "'%d %d' 78 79" "$PRINTF '%d %d' 78 79" "78 79" "" ""
49 testing "'%f %f' 78 79" "$PRINTF '%f %f' 78 79" \
51 testing "'f f' 78 79" "$PRINTF 'f f' 78 79 2>/dev/null" "f f" "" ""
52 testing "'%i %i' 78 79" "$PRINTF '%i %i' 78 79" "78 79" "" ""
53 testing "'%o %o' 78 79" "$PRINTF '%o %o' 78 79" "116 117" "" ""
54 testing "'%u %u' 78 79" "$PRINTF '%u %u' 78 79" "78 79" "" ""
55 testing "'%u %u' -1 -2" "$PRINTF '%u %u' -1 -2" \
57 testing "'%x %X' 78 79" "$PRINTF '%x %X' 78 79" "4e 4F" "" ""
58 testing "'%g %G' 78 79" "$PRINTF '%g %G' 78 79" "78 79" "" ""
59 testing "'%s %s' 78 79" "$PRINTF '%s %s' 78 79" "78 79" "" ""
61 testing "%.s acts like %.0s" "$PRINTF %.s_ 1 2 3 4 5" "_____" "" ""
62 testing "corner case" "$PRINTF '\\8'" '\8' '' ''
66 testing "printf posix inconsistency" "$PRINTF '\\0066-%b' '\\0066'" "\x066-6" \
69 testing "printf \x" "$PRINTF 'A\x1b\x2B\x3Q\xa' | od -An -tx1" \