2006/08/24 Update
qsparse [-r] [-s size] [query]
qsparse 'name=alice&age=18'then environment variables
QS_name
and QS_age
are created, and their contents are 'alice' and '18' respectively.QS_
are put to each names because we should protect system environment variables against malicious clients.
The meaning of options and argument are as follows:
-r
option is a dummy for compatibility. Now "qsparse" removes non-pritable codes from environment variable without this option.-s size
specify buffer size to read query. [default=16KB]query
is omitted, then "qsparse" reads query from stdin.qsparse
is designed to process simple query, that is:qsparse
assumes the names in query consist of alpha-numericqsparse 'name=alice+bob&name=carol'which gives shell variable by
name=`{echo /env/QS_name}and the result will be
('alice bob' carol)
No named attributes will produce "QS_
". The example is
qsparse 'alice+bob&carol'which gives shell variable by
noname=`{echo /env/QS_}and the result will be
('alice bob' carol)The mixture of named and no named is allowed.
QS_
", the same rule as "qsparse".