Opened 5 months ago

Last modified 5 months ago

#33604 new task

Catch common bash runtime errors in chutney scripts

Reported by: teor Owned by:
Priority: Medium Milestone:
Component: Core Tor/Chutney Version:
Severity: Normal Keywords:
Cc: teor Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor:

Description

Let's gradually convert our scripts to use:

set -e
set -u
set -o pipefail

And maybe:

IFS=$'\n\t'

These settings help catch common errors in bash scripts at runtime:
http://redsymbol.net/articles/unofficial-bash-strict-mode/

(Shellcheck helps us catch errors while writing scripts, but it can't help with runtime failures.)

Follow-up to #33451.

Child Tickets

Change History (1)

comment:1 Changed 5 months ago by teor

Type: enhancementtask
Note: See TracTickets for help on using tickets.