4 ms·
You can use default values to avoid the nasty error. ${1:-} will expand to an empty string if your script is called without arguments.
by Splognosticus 12y ago
You can use default values to avoid the nasty error. ${1:-} will expand to an empty string if your script is called without arguments.