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's because parse_args returned "0\n0\nyour arguments" instead of
> "your arguments",
>
> The problem is the wrong way in which you use expr! Do
>       test $# == 0
> not
>       expr $# == 0
>

Thanks Nadav! With this and a few other bug-fixes my script now works
nicely enough. Of course, now I have to write the lynx backend too.

Sometimes I do "expr 5 \> 6 > /dev/null" instead.

Regards,

        Shlomi Fish

test "Knuth" != "God" && echo "Knuth is not God!"

----------------------------------------------------------------------
Shlomi Fish        [EMAIL PROTECTED]
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       [EMAIL PROTECTED]

"Let's suppose you have a table with 2^n cups..."
"Wait a second - is n a natural number?"


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to