> % fullloc = '/one/two?three+four'
> % params = `{echo $fullloc | sed -e 's;.*\?;;' -e 's;\+; ;g'}
> % for(param in $params) echo '        <li>'$"param
>       <li>three
>       <li>four
> 
> The 2nd and 3rd command lines are copied directly from the script, but  
> the script itself outputs the following:
> 
>       <li>three four
> 
> The sed expressions appear to be working correctly, to my eyes, so I  
> don't understand what's going on.

i suspect your ifs is set to something funky.

inserting a "whatis params" in your script would be pretty
interesting.  note that gnu sed will eat your regular expression
since you \? is their meta character.

you can accomplish something that's equivalent in rc without
an explicit loop:

echo '<li>' ^ $params

- erik

Reply via email to