GNOME Bugzilla – Bug 726908
head -n -1 is not portable
Last modified: 2014-03-23 22:19:00 UTC
head -n -1 is used in function sourceend in tests/testrunner.sh, but POSIX says the number should be a positive decimal integer. Using -1 cause the following error on FreeBSD: head: illegal line count -- -1
Does sed '$d' work?
Yes, it works.
commit 02b3917f515c48be72fecdda52b3f84eea2358d5 Author: Luca Bruno <lucabru@src.gnome.org> Date: Sun Mar 23 23:18:06 2014 +0100 tests: Use sed '$d' because head -n -1 is not portable Fixes bug 726908 This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.