| Deutsch English Français Italiano |
|
<vp3dss$1v7kv$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.vms
Subject: Re: Local Versus Global Command Options
Date: Wed, 19 Feb 2025 01:58:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vp3dss$1v7kv$3@dont-email.me>
References: <volt3s$33lo1$1@dont-email.me> <vonh1j$3fukn$1@dont-email.me>
<vonr8r$3ghb6$1@dont-email.me> <voo40m$3jej5$1@dont-email.me>
<vookpo$3mk0q$1@dont-email.me> <67afe79c$0$719$14726298@news.sunsite.dk>
<voqpjj$5mpo$1@dont-email.me> <vor156$6uru$2@dont-email.me>
<votq85$ptnb$1@dont-email.me> <vou0nm$qq2u$2@dont-email.me>
<vp015a$19ajm$1@dont-email.me> <vp0atu$1asp1$5@dont-email.me>
<vp0qua$1dbh3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 19 Feb 2025 02:58:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ffe6c8e78d2f94ecbc6b19c869c8c6e1";
logging-data="2072223"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18b/niL6TC2hXPnc6h2Sjoy"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:jTzqfiFt9FVbTTIg3nguk8GkR2A=
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?