home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,973 of 68,980   
   R.Wieser to All   
   Re: echo a variable containing an & some   
   21 Nov 22 07:42:45   
   
   From: address@not.available   
      
   JJ,   
      
   > However, it seems that there's a bug on the second command   
   > line processing, since it may cancel the CALL command execution.   
   ...   
   > rem but since `%b%` is not quoted, after expansion,   
   > rem the `&` should be treated as a command reparator.   
      
   which is why I expected /something/ to be displayed, even just that the word   
   after the "&" could not be found as a command.   
      
   Thanks for the confirmation of the problem/bug.   
      
   > Chances are that, your SET /P is like this.   
   >   
   > set /p a="%1" So the quotes from the content of `%1` should be stripped first. i.e.   
   >   
   > set /p a="%~1"

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca