The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Adam Thornton <athornton@gmail.com>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: [TUHS] Shell builtin exec
Date: Tue, 20 Aug 2019 14:10:55 -0700	[thread overview]
Message-ID: <CAP2nic1SEFg=e4htyw_23KAL_pUC98JL4XDoWLKwU365BMWXxg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

This is probably the place to ask:

I understand why the shell builtin "exec" is the same as the syscall exec()
in the sense of "replace this process with that one."  But why is it also
the way to redirect filehandles in the current shell?  (That is, why isn't
the redirection named something else?)

Adam

[-- Attachment #2: Type: text/html, Size: 421 bytes --]

             reply	other threads:[~2019-08-20 21:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20 21:10 Adam Thornton [this message]
2019-08-20 22:00 ` Warren Toomey
2019-08-21  0:38 ` Chet Ramey

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='CAP2nic1SEFg=e4htyw_23KAL_pUC98JL4XDoWLKwU365BMWXxg@mail.gmail.com' \
    --to=athornton@gmail.com \
    --cc=tuhs@tuhs.org \
    /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.
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).