On Mon, Dec 6, 2010 at 1:29 PM, Sharad Birmiwal <[email protected]>wrote:

> On Sun, Dec 5, 2010 at 9:37 AM, Narendra Sisodiya
> <[email protected]> wrote:
> > This is one the smallest trick
> >
> > ping() {
> > if [ -z $1 ];
> > then
> >     /bin/ping google.com
> > else
> >     /bin/ping $@
> > fi
> > }
>
> But isn't it nice to see how to use ping if you don't pass an
> argument? I would suggest adding a detailed explanation rather than
> pinging google by default.
>
> SB
>
> --
> l...@iitd - http://tinyurl.com/ycueutm
>


I think that's correct.
In most cases, the guy who doesn't know how to use ping will just type ping
and hope for some kind of explanation to appear. I guess everyone does this
when they find out a new command line function but don't know how to use it.

Even if it is convenient, it shouldn't go to the .bashrc of a distro-
particularly when the distro is targeted at school-age children.
-- 
Mihir Mehta,
B. Tech. student,
Department of Computer Science and Engineering,
Indian Institute of Technology, Delhi.

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to