zsh-users
 help / color / mirror / code / Atom feed
From: "Zefram" <zefram@tao.co.uk>
To: jankr@ifi.uio.no (Jan Kroken)
Cc: zsh-users@math.gatech.edu
Subject: Re: Redirection (<>)
Date: Fri, 7 Aug 1998 16:52:10 +0100 (BST)	[thread overview]
Message-ID: <199808071552.QAA17661@diamond.tao.co.uk> (raw)
In-Reply-To: <vhipvecu8dh.fsf@thjazi.ifi.uio.no> from "Jan Kroken" at Aug 7, 98 05:19:54 pm

Jan Kroken wrote:
>What does <> really mean?

It does exactly what it says on the tin.  It opens the file for
input and output (mode O_RDWR), attaching it to standard input (file
descriptor 0).  It does absolutely nothing to standard output, or any
other file descriptor.

You could do "<>foo >&0" to make the same file available as standard
output as well, but the standard text utilities would be rather confused
by this.  It's more useful with character devices, where input and output
are largely separate operations, and there's no seek pointer to share.

-zefram


  reply	other threads:[~1998-08-07 16:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-07 15:19 Jan Kroken
1998-08-07 15:52 ` Zefram [this message]
1998-08-07 16:00 ` Owen M. Astley

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199808071552.QAA17661@diamond.tao.co.uk \
    --to=zefram@tao.co.uk \
    --cc=jankr@ifi.uio.no \
    --cc=zsh-users@math.gatech.edu \
    /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://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).