Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

${(Oi)foo} broken



(Still in 2.6b20.  Did nobody notice it since zsh-2.4-something-beta? :)

  % foo=(a B c); echo ${(Oi)foo}
  c a B

That should be "c B a".  Manual says, sort case-independently
in descending order.  Because the sort flags are coded as an
integer running from 0 to 4, bitwise OR won't work with 'em.

Regards,
--Thorsten


*** subst.c	1996/06/07 14:52:49	2.27
--- subst.c	1996/06/12 13:28:14
***************
*** 849,856 ****
  	    s++;
  	}
      }
!     if (sortit && casind)
! 	sortit |= (casind << 1);
  
      if (!premul)
  	premul = " ";
--- 849,856 ----
  	    s++;
  	}
      }
!     if (sortit)
! 	sortit += (casind << 1);
  
      if (!premul)
  	premul = " ";




Messages sorted by: Reverse Date, Date, Thread, Author