]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: don't silently skip the sort-version tests
authorJim Meyering <meyering@redhat.com>
Wed, 13 Jan 2010 09:19:58 +0000 (10:19 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 13 Jan 2010 09:21:02 +0000 (10:21 +0100)
commit3b498ba1410d9730782db439db27e85ff20d0e56
tree8dccfbf2e9f89a795f2a2ea18472b0314e283058
parent39243f0ea8efc572e3206b5f0fca12696a52308e
tests: don't silently skip the sort-version tests

* tests/misc/sort-version: Don't use <<- and indented here-doc contents.
s/<<-/<</ and unindent the here-document contents.  Otherwise,
bash would ignore the indented delimiter and use EOF, thus silently
skipping this test.  OpenBSD5.4's shell reported the failure:
  $ printf 'cat<<-x\n foo\n x\n'|sh
  sh: <stdin>[4]: here document `x' unclosed
  [Exit 1]
by contrast, bash warns but still exits successfully:
  $ printf 'cat<<-x\n foo\n x\n'|bash && echo you lose
  bash: line 3: warning: here-document at line 1 delimited by \
    end-of-file (wanted `x')
   foo
   x
  you lose
tests/misc/sort-version