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
doc: rewrite the "Unusual File Names" section
[diffutils.git]
/
tests
/
timezone
blob
52b9e1889f986707511a5521487877cd64d483fd
1
#!/bin/sh
2
# In diff 3.4 through 3.8, this would output the wrong timezone on Solaris.
3
4
.
"
${srcdir=.}
/init.sh"
;
path_prepend_ ..
/
src
5
6
fail
=
0
7
8
echo
a
>
a || fail
=
1
9
case
$
(
LC_ALL
=
C TZ
=
EST5
diff
-u
/
dev
/
null a
)
in
10
*
' -0500'
*) ;;
11
*)
fail
=
1
;;
12
esac
13
14
Exit
$fail