regex problem with webcheck

Siggy Brentrup ubuntu at psycho.i21k.de
Sun Jul 19 14:27:58 UTC 2009


On Sun, Jul 19, 2009 at 14:56 +0100, R Kimber wrote:
> On Sat, 18 Jul 2009 23:38:55 +0100
> R Kimber wrote:
> 
> > On Sat, 18 Jul 2009 18:11:07 +0000 (UTC)
> > Aart Koelewijn wrote:
> > 
> > > I don't know webcheck, but for a regex I think you will need ^\/ to be 
> > > sure the / is taken literal and not as a special character.
> > 
> > Thanks.  But I did try that.  I also tried puting the argument in quotes.
> 
> Actually, the example on the manpage (which works) implies that you don't
> need to escape it.
> 
> I've come to the conclusion that metacharacters don't work and that only
> the simplest regular expressions (literal strings) actually work.

It seems to me that you get bitten by the shell mangling your
arguments, don't worry that still happens to me after decades.  If I
want to see what the invoked program sees, I use the attached trivial
little python script.

% ~/scripts/show_args.py webcheck \ \\\ "$SHELL" "$SHELL" '$SHELL'
argv[1:] = ['webcheck', ' \\ /usr/bin/zsh', '/usr/bin/zsh', '$SHELL']

congrats-if-you-expected-the-result-ly yours
  Siggy

ps: I don't know webcheck either.
-- 
Please don't cc: me when replying on the list.
    bsb-at-psycho-dot-informationsanarchistik-dot-de
or:                    bsb-at-psycho-dot-i21k-dot-de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: show_args.py
Type: text/x-python
Size: 67 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090719/735ea936/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090719/735ea936/attachment.sig>


More information about the ubuntu-users mailing list