Hello,

I am working on a simple shell and I need to add the ability to handle program names and parameters that contain white space: everything in between two double quote (") characters needs to be treated as one word! E.g. "./hello world" should be treated as the name of one program called hello world (in the current directory) rather than a program called hello with one parameter world.

Also I need to allow the sequence \" (a backslash followed by a quote) to represent a single quote within a word. E.g. "./hello \"world\"" should represent a program in the current directory called hello "world" (including the quotes).

I hope you will help me.
Thanks

So what other forums did you shotgun this question to aside from here?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.