repo.or.cz
/
diffutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
maint: post-release administrivia
[diffutils.git]
/
tests
/
expand-tabs
blob
ae4c0fa95c701e00a5d9b6b12eba5bfb65e3fdf2
1
#!/bin/sh
2
# Test tab expansion.
3
4
.
"
${srcdir=.}
/init.sh"
;
path_prepend_ ..
/
src
5
6
fail
=
0
7
8
cat
>
exp
<<'EOF' || framework_failure_
9
0a1
10
> x
11
EOF
12
13
for
p
in
'
\b\t
x
\n
'
'
\b
x
\n
'
'
\b \t
x
\n
'
;
do
14
printf
"
$p
"
| returns_
1
diff
-t
/
dev
/
null
- >
out || fail
=
1
15
done
16
17
compare exp out || fail
=
1
18
19
Exit
$fail