[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-enscript] enscript src/tests/passthrough.test uses obsolete tai
From: |
Tim Retout |
Subject: |
Re: [bug-enscript] enscript src/tests/passthrough.test uses obsolete tail option |
Date: |
Thu, 4 Oct 2012 22:35:53 +0100 |
On 27 September 2012 23:24, Karl Berry <address@hidden> wrote:
> + | tail -n +2 >$output
>
> Having been invented by POSIX, tail -n is not supported on all systems.
> Solaris 5.10's tail, at least, doesn't have -n. I wouldn't be surprised
> if there are others.
>
> I think the simplest solution is to use sed. As in something like:
> sed 1,2d test_input.ps ...
This is a good idea - sed is listed in the autoconf manual under
'portable shell programming', so I am sure we can assume its existence
without needing to check for it:
http://www.gnu.org/software/autoconf/manual/autoconf.html#sed
And also, 'sed 1d' now seems more intuitive to me than 'tail +2' for
chopping off the first line. So I've committed this.
--
Tim Retout <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug-enscript] enscript src/tests/passthrough.test uses obsolete tail option,
Tim Retout <=