[Surfraw-devel] surfraw -- errors to stderr, bookmark handling

Ian Beckwith ianb at erislabs.net
Thu May 12 02:22:54 UTC 2011


Sorry again about the delay replying.

On Sun, Apr 03, 2011 at 04:01:30PM +0100, Stephen Blott wrote:
>       $ surfraw any old garbage
>    produces a non-zero exit code (which is good) and a usage message on
>    standard output (which is bad).  Surely error messages should go to
>    standard error.

Fixed. What about just doing a bare "surfraw"? At the moment that does
stdout + exit 0. Should that go to stderr to? I can see arguments for both ways.

[bookmark matching]
>    The offending line is:
>       nawk -v search="$search" '$1 ~ search { print $2; }'  $file | head -n 1
>    which seems somewhat too liberal to me.

I've changed ~ to == (regexp match to exact match).

> I have written a pentadactyl/firefox plugin for surfraw.  Pentadactyl is
> a firefox plugin which provides a vim-like interface to firefox:

Cool! I've added a stanza to README about it.



Ian Beckwith - ianb at erislabs.net - http://erislabs.net/ianb/
GPG fingerprint: AF6C C0F1 1E74 424B BCD5  4814 40EC C154 A8BA C1EA
Listening to: Massive Attack - Protection [Radiation Ruling the Nation]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 237 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/surfraw-devel/attachments/20110512/b5aa0d1c/attachment.pgp>

More information about the Surfraw-devel mailing list