Debian Codegraph @

tests/ignore-tab-expansion

raw
1 #!/bin/sh
2 # Test ignoring tab expansion.
3
4 . "${srcdir=.}/init.sh"; path_prepend_ ../src
5
6 fail=0
7
8 for p in '\b' '\r' '\t ' '\n'; do
9 printf "$p"'\b\tx\n' >a || framework_failure_
10 printf "$p"'\b x\n' >b || framework_failure
11
12 diff -E a b >out || fail=1
13 compare /dev/null out || fail=1
14 done
15
16 require_utf8_locale_
17
18 tr '_@' ' \t' >a <<\EOF
19 @字字字xx@x_@字_@xxx_x@@x
20 EOF
21 tr '_@' ' \t' >b <<\EOF
22 _@字字字xx________x_@字_@xxx_x@@x
23 EOF
24
25 diff -E a b >out || fail=1
26 compare /dev/null out || fail=1
27
28 Exit $fail