#!/bin/rc qsparse $QUERY_STRING cat<<-eof- CGI query

CGI query

qsparse is a simple tool to handle $$QUERY_STRING.
the usage is: qsparse $$QUERY_STRING

now we have $QUERY_STRING for $$QUERY_STRING

the result is stored in /env putting prefix QS_ as shown bellow.
in case of duplicated names like alice in the next line:
name=alice&name=bob&name=alice
their values are simply over-written.


/env/QS_*

-eof- ls /env/QS_* echo '

Their values

' cd /env for(e in QS_*) $e=`{cat $e} whatis QS_* cat<<-eof-

see this script -eof-