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:
parent
eee47df423
commit
e1ef18c8ef
1 changed files with 1 additions and 1 deletions
|
@ -557,7 +557,7 @@ $SHELL 2> /dev/null -c 'cd ""' && err_exit 'cd "" not producing an error'
|
||||||
bincat=$(whence -p cat)
|
bincat=$(whence -p cat)
|
||||||
builtin cat
|
builtin cat
|
||||||
out=$tmp/seq.out
|
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"
|
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'
|
[[ $($SHELL -c '{ printf %R "["; print ok;}' 2> /dev/null) == ok ]] || err_exit $'\'printf %R "["\' causes shell to abort'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue