[Swift-user] Passing strings with blanks to apps in swift

Mihael Hategan hategan at mcs.anl.gov
Thu Nov 8 12:43:08 CST 2007


If you put the string in quotes it should work. One string is one
element in argv.

On Thu, 2007-11-08 at 12:20 -0600, Michael Wilde wrote:
> In angle i need to pass a string of IDs as a single parameter to an 
> application:
>    angle "7171717 76 76" --more stuff --here
> 
> Can you point me to an example of how to pass/quote this correctly, so 
> that the command line is invoked exactly as above (in this case with 
> argc=5, and argv[1]="7171717 76 76" ?
> 
> Thanks.
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
> 




More information about the Swift-user mailing list