[GRASS-dev] [grass-code I][379] r.in.wms incorrect flag

Hamish hamish_nospam at yahoo.com
Wed Apr 25 01:23:31 EDT 2007


http://wald.intevation.org/tracker/?func=detail&atid=204&aid=379&group_id=21
..
> code I item #379, was opened at 2007-04-24 19:03
> Summary: r.in.wms incorrect flag 
> Operating system: MacOS X
> Operating system version: 10.4.9
..

> WARNING: xml2 NOT avaliable
> sed: sed: 1: "s/<Layer .*>/LAYER:/i
> ": bad flag in substitute command: 'i'
> 1: "s/<Name>\s*\(\w*\)/~\1~ ...": bad flag in substitute command: 'i'
> sed: 1: "s/<\/Name>\n//ig
> ": bad flag in substitute command: 'i'sed: 1: "s/<\/Layer.*>//i
> ": bad flag in substitute command: 'i'
> 
> sed: 1: "s/<\/*.*\/*\/*>//i
> ": bad flag in substitute command: 'i'
> sed: 1: "s/<\/Title>//i
> ": bad flag in substitute command: 'i'
> sed: 1: "s/<Style>\n*\s*\(\w*\)/ ...": bad flag in substitute command:
> 'i' sed: 1: "s/<Title>\(.*\)<\/Title ...": bad flag in substitute
> command: 'i' sed: 1: "s/<\/Style>//i
> ": bad flag in substitute command: 'i'
> 
> The problem seems to be the alternative sed command used.  That /i is
> not a valid flag to the s/ sed command.


from the Sed FAQ:
  http://sed.sourceforge.net/sedfaq3.html#s3.1.3

--quoted--
GNU sed 3.02 and ssed also offer the /I switch for doing
a case-insensitive match. For example,

     echo ONE TWO | gsed "s/one/unos/I"      # prints
"unos TWO"
--endquote--


anyone know a regex solution that's more portable than s///i?


Hamish




More information about the grass-dev mailing list