From: notsaying@invalid.org   
      
   On Sat, 13 Apr 2019 23:41:01 GMT, JJ wrote:   
      
   > I've just noticed that sometimes the CTRL-C is less effective some of   
   my   
   > batch files. So I isolated the problem and found out that somehow,   
   CTRL-C   
   > became less effective when the current code is in a grouped command(s).   
   > Here's the minimal code to reproduce the problem.   
   >   
   > My solution was to change the code so that it doesn't use any grouped   
   > command whenever possible. But why does CTRL-C became less effective?   
   >   
   > @echo off   
   > echo press ctrl-c now   
   > (   
   > pause   
   > echo ctrl-c failed   
   > )   
      
   Seems to work as I'd want here [XP cmd.exe, break off, no   
   extensionsenabled]   
      
   I tried:   
      
   @echo off   
   echo press ctrl-c now   
   (   
    pause   
    echo in bracket ctrl-c failed   
   )   
      
    pause   
    echo no bracket ctrl-c failed   
      
      
   --   
   Bah, and indeed, Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|