2 ms·
But why -v ? Wouldn't just: command curl # optionally 2> /dev/null # but there really shouldn't be any # output -- so any
by e12e 13y ago
But why -v ? Wouldn't just:
command curl # optionally 2> /dev/null
# but there really shouldn't be any
# output -- so any error you probably
# want to see...
do what's intended (exit with non-zero return if curl isn't available as a command)?
[edit: Because command runs the command by default, it outputs info with -v!. So if the command does something by default (eg: command halt) -- then:
command halt #halts!
command -v halt #outputs something like /sbin/halt
Whops.]