ke, 2007-08-29 kello 18:00 +0200, Steinar H. Gunderson kirjoitti:
> On Wed, Aug 29, 2007 at 10:58:17AM -0500, John Goerzen wrote:
> > I don't think so.  Hasn't tar defaulted to something approximately
> > /dev/rmt0 for *YEARS*, not just on Linux but on just about every platform,
> > if -f is not given?
> 
> No.

Well, maybe it did, depending on whether John meant GNU tar
specifically, or the various traditional implementations of Unix tar. It
was certainly the case that SCO Xenix and SunOS tars would attempt to
write to the system default tape back when I was young and Linux didn't
even exist yet.

A quick grep through GNU tar's changelogs indicates that in 1994 the
default changed to stdout, if I interpret this correctly:

1994-08-21  François Pinard  <[EMAIL PROTECTED]>

        * Prerelease 1.11.5.

        ...

        * configure.in: Do not try anymore to discover the archive device
        by looking around for various device names.  If the installer does
        not override it, nicely use `-' as a convenient default.
        Reported by Andreas Schwab and Kaveh R. Ghazi.

I no longer have access to, say, a Solaris machine to check what their
default is. Not that it matters, I think, since I agree with others
who've said it's wisest to always specify the output explicitly with
tar. If nothing else, you never know if the default might not change
again, since it has already (or perhaps whoever built tar on the system
set DEFAULT_ARCHIVE to something else than "-").

-- 
Boilerplate programming mean tools lack power.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to