[U-Boot] ping default behaviour

would it be reasonable for ping with no parameters to ping the serverip address if that's defined?
David Collier
www.dexdyne.com

David,
On Fri, Oct 23, 2009 at 3:09 AM, David Collier from_denx_uboot@dexdyne.comwrote:
would it be reasonable for ping with no parameters to ping the serverip address if that's defined?
No, that's not a good default behavior for everybody, for several reasons.
The only one I'll mention here is that 'ping' is a ubiquitous utility that everybody knows and changing its behavior would be confusing at best.
If you want to do something like this, use an environment variable like (untested):
# setenv myping 'ping $serverip'
David Collier
www.dexdyne.com
regards, Ben

No, that's not a good default behavior for everybody, for several reasons.
The only one I'll mention here is that 'ping' is a ubiquitous utility that everybody knows and changing its behavior would be confusing at best.
Hmmmm.. well if I'm defining it's behaviour in a circumstance where it would normally error and stop, I can hardly see anyone would lose much... but if you say so....
If you want to do something like this, use an environment variable like (untested):
# setenv myping 'ping $serverip'
an excellent suggestion, and probably a good way to go.
I haven't tried running on environment variable from another - I assume it works...
TVM
participants (2)
-
Ben Warren
-
David Collier