Hi all! * Dave Thompson wrote on Fri, Feb 06, 2009 at 20:59 -0500: > > Adding the quotes didn't work because, if I understand things > > correctly, the notion of quotes (or escaping characters with \) > > is a shell concept - hence my attempt to force the command to run > > under a shell. > > > Those are shell concepts, yes.
The parameter was wanted to be passed as it is and to be able to quote a shell was used? I think, quoting is to avoid that a shell interprets parameters, so I think in best case ending up with passing as it is (i.e. not evaluating). Also splitting parameters at word boundaries is a shell concept. That's why Javas Runtime.exec() has a `String[] cmdarray'. I guess cmdarray[0] is the command binary, cmdarray[1] the argv[0] and cmdarray[2] the first parameter (fortunality the Javadoc[1] does take the fun letting the developers guess, but it states that exec() executes, cmdarray is the command and envp the environment, who had guessed that! SCNR). So for passing arguments as it is a shell is not suited. > Shell is designed to be convenient for normal (interactive) cases, > as the cost of confusion and obscurity in weird cases. [I wouldn't call it `interactive or confusing', there are a lot of useful shell scripts also :-)] oki, Steffen [1] http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html#exec(java.lang.String[],%20java.lang.String[]) ---[ End of message ]---------------------------------------------->8======= About Ingenico: Ingenico is the world's leading provider of payment solutions, with over 15 million terminals deployed across the globe. Delivering the very latest secure electronic payment technologies, transaction management and the widest range of value added services, Ingenico is shaping the future direction of the payment solutions market. Leveraging on its global presence and local expertise, Ingenico is reinforcing its leadership by taking banks and businesses beyond payment through offering comprehensive solutions, a true source of differentiation and new revenues streams. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. P Please consider the environment before printing this e-mail ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org