Sujet : Re: Local Versus Global Command Options
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 19. Feb 2025, 02:58:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vp3dss$1v7kv$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Pan/0.161 (Chasiv Yar; )
On Mon, 17 Feb 2025 19:23:07 -0700, Mark Berryman wrote:
On 2/17/25 2:49 PM, Lawrence D'Oliveiro wrote:
>
Can you show us a simple C program that just prints out its command
arguments, and how it responds to some sample command lines?
Easily.
Try some more subtle examples. On a proper POSIX-type system:
QUOTE='"'
./test "Hello World" ${QUOTE}Hello World${QUOTE}
Hello World
"Hello
World"
Try to get the equivalent in DCL:
quote = """"
«rigmarole equivalent to ./test» "Hello World" 'quote'Hello World'quote'
What’s it going to print?