Why you shouldn't parse the output of ls(1)

FullBashGuide

Avoid "set -o pipefail" in bash

Why doesn't set -e (or set -o errexit, or trap ERR) do what I expected?

Greg's Wiki

The X-Y Problem

Why doesn't Bash's `set -e` do what I expected?

Bash Pitfalls

Bash Guide

You shouldn't parse the output of ls(1)

Bash Pitfalls

BASH FAQ

FTP Must die the technical explanation

Bash Pitfalls

Why you shouldn't parse the output of ls