1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

tests/builtin.sh: don't use unportable 'seq' (is not on OpenBSD)

(cherry picked from commit c9f6c148bff1fe82cb575d55467f68f2bef939ff)
This commit is contained in:
Martijn Dekker 2020-06-03 02:11:17 +02:00
parent eee47df423
commit e1ef18c8ef

View file

@ -557,7 +557,7 @@ $SHELL 2> /dev/null -c 'cd ""' && err_exit 'cd "" not producing an error'
bincat=$(whence -p cat)
builtin cat
out=$tmp/seq.out
seq 11 >$out
for ((i=1; i<=11; i++)); do print "$i"; done >$out
cmp -s <(print -- "$($bincat<( $bincat $out ) )") <(print -- "$(cat <( cat $out ) )") || err_exit "builtin cat differs from $bincat"
[[ $($SHELL -c '{ printf %R "["; print ok;}' 2> /dev/null) == ok ]] || err_exit $'\'printf %R "["\' causes shell to abort'