Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.vms    |    DEC's VAX* line of computers & VMS.    |    264,096 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 262,403 of 264,096    |
|    Lawrence D'Oliveiro to Mark Berryman    |
|    Re: Local Versus Global Command Options    |
|    19 Feb 25 01:58:52    |
   
   From: ldo@nz.invalid   
      
   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?   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca