in reply to How to convert arguments to string
The "&" characters are most likely being interpreted by the shell (this is on a *nix system, right?) as the "background" operator. That is, if you are not enclosing the string in single quotes on the command line, the shell thinks you wish to run those "commands" in the background.
Try using double (or single) quotes around the argument on the command line and see what happens. I.e:
$myprog 'http://sampleurl.sample.com/DOCID=1234&DOCREV=1&DOCLOC=1234&D +OCDIAL=~'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to convert arguments to string
by soonix (Chancellor) on Nov 20, 2013 at 07:05 UTC | |
|
Re^2: How to convert arguments to string
by fearthechris29 (Initiate) on Nov 20, 2013 at 07:05 UTC |