From: Steffen Nurpmeso <steffen@sdaoden.eu>
To: Steve Jenkin <sjenkin@canb.auug.org.au>
Cc: COFF <coff@tuhs.org>
Subject: [COFF] Re: Shell script advice: using 'dd' to write multiple media
Date: Tue, 27 Jun 2023 18:07:17 +0200 [thread overview]
Message-ID: <20230627160717.1ppNv%steffen@sdaoden.eu> (raw)
In-Reply-To: <20230627155001.KTa3w%steffen@sdaoden.eu>
And i'd wish the shell had "set -o pipefail" much much earlier.
So you (sometimes) do things like
#(set -o pipefail) >/dev/null 2>&1 && set -o pipefail
es=$(exec 3>&1 1>&2; { the_worker "$cmd"; echo $? >&3; } | mytee | mymail)
that are super neat (ie that this is possible syntax-wise!), but
terrible and cryptical and surely error-prone to do.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
next prev parent reply other threads:[~2023-06-27 16:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-26 23:09 [COFF] " steve jenkin
2023-06-26 23:21 ` [COFF] " Dave Horsfall
2023-06-26 23:44 ` steve jenkin
2023-06-27 21:01 ` Dave Horsfall
2023-06-26 23:32 ` Clem Cole
2023-06-27 4:43 ` Steve Jenkin
2023-06-26 23:44 ` Bakul Shah
2023-06-27 3:47 ` Steve Jenkin
2023-06-27 15:50 ` Steffen Nurpmeso
2023-06-27 16:07 ` Steffen Nurpmeso [this message]
2023-06-27 0:25 ` segaloco via COFF
2023-06-27 6:23 ` Ralph Corderoy
2023-06-27 6:28 ` Adam Thornton
2023-06-27 6:33 ` Ralph Corderoy
2023-06-27 7:53 ` steve jenkin
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=20230627160717.1ppNv%steffen@sdaoden.eu \
--to=steffen@sdaoden.eu \
--cc=coff@tuhs.org \
--cc=sjenkin@canb.auug.org.au \
/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).