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,414 of 264,096    |
|    =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Robert A. Brooks    |
|    Re: Local Versus Global Command Options    |
|    19 Feb 25 16:06:10    |
   
   From: arne@vajhoej.dk   
      
   On 2/18/2025 11:24 PM, Robert A. Brooks wrote:   
   > On 2/18/2025 10:03 PM, Dan Cross wrote:   
   >> 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.   
   >   
   > +1!   
      
   I have a different perspective.   
      
   The code posted, which I ran on VMS as:   
      
    > $ bash   
    > bash-4.4$ QUOTE='"'   
    > bash-4.4$ ./test "Hello World" ${QUOTE}Hello World${QUOTE}   
    > Hello World   
    > "Hello   
    > World"   
    > bash-4.4$ exit   
    > exit   
      
   (using VSI's recent VMS x86-64 GNV kit)   
      
   may not be something used in the real world, but it does raise the   
   question of how to do it in DCL.   
      
   And I came up with:   
      
    > $ quote = """"""   
    > $ mcr sys$disk:[]test "Hello World" "''quote'"Hello World"''quote'"   
    > Hello World   
    > "Hello   
    > World"   
      
   There may be better solutions.   
      
   (if anyone knows one please post!)   
      
   But it is definitely on topic for c.o.v/I-V.   
      
   And maybe (just maybe) it is useful for a current or a future reader.   
      
   I do not care much about who raised the question. It doesn't change   
   being on topic or potential usefulness.   
      
   Arne   
      
   --- 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