coin-or / OS

Optimization Services
Other
1 stars 4 forks source link

tail -4 is not portable #5

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: @andrea5w

Original creation time: 2008-07-27 22:22:21

Assignee: somebody

Version:

Hi,

I ran the configure script on AIX, and I get the error message:

tail: `-4' option is obsolete; use `-n 4'
Try `tail --help' for more information.
svn: Write error: Broken pipe

The issue is that "tail -4" in the line

svn info | tail -4 > $ac_default_prefix/src/version.txt

should be replaced by "tail -n 4"

svigerske commented 5 years ago

Comment by kmartin created at 2008-07-28 01:02:20

Resolution: fixed

svigerske commented 5 years ago

Comment by @svigerske created at 2008-08-03 17:56:21

The fix does not work on SunOS 5. The last lines of a configure run are

...
configure: creating ./config.status
configure: Creating VPATH links for data files
configure: Configuration of OS successful
usage: tail [+/-[n][lbc][f]] [file]
       tail [+/-[n][l][r|f]] [file]

src/version.txt is empty afterwards.

Stefan

svigerske commented 5 years ago

Comment by @svigerske created at 2008-08-03 17:56:21

Resolution changed from fixed to

svigerske commented 5 years ago

Comment by @svigerske created at 2008-08-03 17:56:21

Changing status from closed to reopened.

svigerske commented 5 years ago

Comment by kmartin created at 2008-08-04 02:56:43

This problem is now fixed in OS

trunk stable 1.1 BSP stable

svigerske commented 5 years ago

Comment by kmartin created at 2008-08-04 02:56:43

Resolution: fixed