Re: Help with a Bourne Shell Script

2002-09-25 Thread Shlomi Fish
On Wed, 25 Sep 2002, Nadav Har'El wrote: > On Wed, Sep 25, 2002, Shlomi Fish wrote about "Re: Help with a Bourne Shell Script": > > Sometimes I do "expr 5 \> 6 > /dev/null" instead. > > Well, you shouldn't... Expr wasn't meant for these ki

Re: Help with a Bourne Shell Script

2002-09-25 Thread Nadav Har'El
On Wed, Sep 25, 2002, Shlomi Fish wrote about "Re: Help with a Bourne Shell Script": > Sometimes I do "expr 5 \> 6 > /dev/null" instead. Well, you shouldn't... Expr wasn't meant for these kinds of things, and you just saw how this can cause you bugs. Do &q

Re: Help with a Bourne Shell Script

2002-09-25 Thread Shlomi Fish
On Wed, 25 Sep 2002, Nadav Har'El wrote: > On Wed, Sep 25, 2002, Shlomi Fish wrote about "Help with a Bourne Shell Script": > > http://t2.technion.ac.il/~shlomif/fetchweb > > My problem is that proc_args does not return the new command line. > > That'

Re: Help with a Bourne Shell Script

2002-09-25 Thread Nadav Har'El
On Wed, Sep 25, 2002, Shlomi Fish wrote about "Help with a Bourne Shell Script": > http://t2.technion.ac.il/~shlomif/fetchweb > My problem is that proc_args does not return the new command line. That's because parse_args returned "0\n0\nyour arguments" instead of

Re: Help with a Bourne Shell Script

2002-09-25 Thread Yedidyah Bar-David
On Wed, Sep 25, 2002 at 09:56:34AM +0300, Shlomi Fish wrote: > > Check: > > http://t2.technion.ac.il/~shlomif/fetchweb > > My problem is that proc_args does not return the new command line. You probably meant 'test' and not expr in line 54. expr, besides setting the return value, also outputs

Help with a Bourne Shell Script

2002-09-24 Thread Shlomi Fish
Check: http://t2.technion.ac.il/~shlomif/fetchweb My problem is that proc_args does not return the new command line. Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technio