From: Theodore Tso <tytso@mit.edu>
To: Jari Aalto <jari.aalto@cante.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] tail -n not supported in all OSs
Date: Tue, 16 Oct 2007 18:06:24 -0400 [thread overview]
Message-ID: <20071016220624.GC1314@closure.lan> (raw)
In-Reply-To: <1192553837-18302-1-git-send-email-jari.aalto@cante.net>
On Tue, Oct 16, 2007 at 07:57:14PM +0300, Jari Aalto wrote:
>
> SunOS/Solaris tail(1) does not support option '-n'. The
> following patches change occurrances of:
>
> tail -n <N>
>
> to
>
> tail <N>
POSIX.2 guarantees that "tail -n 2" works. "Tail -<N>" is considered
obsolete. Unfortunately Solaris requires you to use
/usr/xpg4/bin/tail if you want a POSIX.2 compliant header file. The
/usr/bin/tail is designed for System V R3 compliance (i.e., from a
full two decades ago; SVR3 was released in 1987), and is due to Sun's
vow to Backwards Compatible Forever.
See "man 5 standards" on a Solaris box to see how your PATH variable
has to be set if you want something which is compatible with modern
Unix/Linux common usage.
- Ted
prev parent reply other threads:[~2007-10-16 22:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 16:57 [PATCH] tail -n not supported in all OSs Jari Aalto
2007-10-16 16:57 ` [PATCH] git-am.sh: Remove option -n from tail Jari Aalto
2007-10-16 16:57 ` [PATCH] git-commit.sh: " Jari Aalto
2007-10-16 16:57 ` [PATCH] git-rebase--interactive.sh: " Jari Aalto
2007-10-16 17:18 ` [PATCH] git-commit.sh: " Johannes Schindelin
2007-10-16 17:12 ` [PATCH] tail -n not supported in all OSs David Brown
2007-10-16 17:16 ` YOSHIFUJI Hideaki / 吉藤英明
2007-10-16 17:19 ` Johannes Schindelin
2007-10-16 20:37 ` Florian Weimer
2007-10-16 22:06 ` Theodore Tso [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071016220624.GC1314@closure.lan \
--to=tytso@mit.edu \
--cc=git@vger.kernel.org \
--cc=jari.aalto@cante.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).