News for hackers. Stuff that matters.
Re:Pipefail: A missing shell option slowed Cloudflare down by faho on Wednesday April 06, 2022 @09:49AM (#30931913)
> But you can use the '>' operator, that will create the file only if the command runs successful:

It will still create the file.

Run this in bash, zsh or fish:

    false > falsefile
It will create an empty file called "falsefile". This is because the shell opens the file before the program runs.

What fixes it in your script is the `&&`. That causes the `dosctr` to only be run if the `dos-make-addr-conf` succeeded.

Re:Pipefail: A missing shell option slowed Cloudflare down by Wallacy on Wednesday April 06, 2022 @07:16PM (#30938647)
You are right. My bad! Thanks.