shopt -s nullglob

Category: Shell & Bash

shopt -s nullglob

Allow globs to expand to empty string when no match

Allows glob patterns that match nothing to expand to an empty string instead of causing an error.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.