From: cross@spitfire.i.gajendra.net   
      
   In article <67b54873$0$709$14726298@news.sunsite.dk>,   
   Arne Vajhøj 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.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|