# termination condition: called w/ no argumnets,
# ergo, nothing to do, return success
test "$1" || return 0
# termination condition: called w/ no arguments,
# ergo, nothing to do, return success
test "$#" -eq 0 || return 0
Rainer Weikusat wrote:
# termination condition: called w/ no argumnets,
# ergo, nothing to do, return success
test "$1" || return 0
Nit-pick: the comment doesn't match the code. Should be either:
# termination condition: called w/ no arguments,
# ergo, nothing to do, return success
test "$#" -eq 0 || return 0
or:
# termination condition: called w/ no arguments or with an
# empty first argument, ergo, nothing to do, return success
test "$1" || return 0
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 135:05:13 |
Calls: | 6,857 |
Calls today: | 3 |
Files: | 12,360 |
Messages: | 5,418,486 |