Skip to content

Should bash strict mode be recommended as good practice? #30

Open
@peterjc

Description

@peterjc

Should bash strict mode be recommended as good practice? See http://redsymbol.net/articles/unofficial-bash-strict-mode/ which uses:

#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

Personally I use set -e most heavily, and generally just use the one line set -euo pipefail after the hash-bang.

Originally raised as swcarpentry/shell-novice#251 but we agreed it was too advanced for the shell novice lesson.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions