trivial syntax issue

Ray Andrews <[email protected]> Wed, 6 May 2026 14:04:55 -0700
Newsgroups gmane.comp.shells.zsh.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------28O84w5RczMdhFdqXP8Debje
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

% a=(junk*(N)); [[ $a ]] && echo TRUE
TRUE

% a=(zzz*(N)); [[ $a ]] && echo TRUE

% [[ (zzz*(N)) ]] && echo TRUE
TRUE

... I'd expect the 3d line to work as a naive simplification but it 
returns true every time.  Can it be fixed?



--------------28O84w5RczMdhFdqXP8Debje
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="DejaVu Sans">% a=(junk*(N)); [[ $a ]] &amp;&amp; echo
      TRUE<br>
      TRUE<br>
      <br>
      % a=(zzz*(N)); [[ $a ]] &amp;&amp; echo TRUE<br>
      <br>
      % [[ (zzz*(N)) ]] &amp;&amp; echo TRUE<br>
      TRUE<br>
      <br>
      ... I'd expect the 3d line to work as a naive simplification but
      it returns true every time.  Can it be fixed?<br>
      <br>
      <br>
      <br>
    </font>
  </body>
</html>

--------------28O84w5RczMdhFdqXP8Debje--