Deutsch   English   Français   Italiano  
<vp3hlk$n28$1@reader2.panix.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: Local Versus Global Command Options
Date: Wed, 19 Feb 2025 03:03:16 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <vp3hlk$n28$1@reader2.panix.com>
References: <volt3s$33lo1$1@dont-email.me> <vp0qua$1dbh3$1@dont-email.me> <vp3dss$1v7kv$3@dont-email.me> <67b54873$0$709$14726298@news.sunsite.dk>
Injection-Date: Wed, 19 Feb 2025 03:03:16 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="23624"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
Bytes: 2290
Lines: 51

In article <67b54873$0$709$14726298@news.sunsite.dk>,
Arne Vajhøj  <arne@vajhoej.dk> wrote:
>On 2/18/2025 8:58 PM, Lawrence D'Oliveiro wrote:
>> 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?
>
>This is  more of a shell question than an OS question.
>
>bash and DCL are different.
>
>$ bash
>bash-4.4$ QUOTE='"'
>bash-4.4$ ./test "Hello World" ${QUOTE}Hello World${QUOTE}
>Hello World
>"Hello
>World"
>bash-4.4$ exit
>exit
>
>$ quote = """"""
>$ mcr sys$disk:[]test "Hello World" "''quote'"Hello World"''quote'"
>Hello World
>"Hello
>World"

I am utterly baffled as to why you continue to regularly
engage with this troll.  It's your choice, of course, but
getting the backsplatter is unpleasant for rest of us who
have already plonked him.

	- Dan C.