in reply to command line and quotes

First off, please don't put your text inside the markers for your sig. Some people turn off sigs, and won't see anything here.

Second, the way the shell operates is that the quotes are special characters. That's not using your program, that's using a shell. Learning to use the shell means that you'll learn to use backslashes as appropriate to get the meaning you want across. Whether that's a good thing or bad may depend on what you want to accomplish ;-)

I'm kinda curious as to why you need quotes passed through, though.

Replies are listed 'Best First'.
Re^2: command line and quotes
by skerr1 (Sexton) on Jun 02, 2006 at 04:39 UTC

    Thanks for the tip on the sig. My fault for not reading clearly. Fixed it now.

    Need the quotes because I'm passing @ARGV through a tcp socket. There won't always be quotes, so when they are there, I need to keep them so they can be passed.

    I could process @ARGV looking for the "-s" and add quotes around the following argument, but I'd like to avoid that.

    Thanks,
    Shannon Kerr