From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20629 invoked from network); 4 Dec 2004 09:15:55 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Dec 2004 09:15:55 -0000 Received: (qmail 60560 invoked from network); 4 Dec 2004 09:15:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Dec 2004 09:15:48 -0000 Received: (qmail 27761 invoked by alias); 4 Dec 2004 09:14:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8261 Received: (qmail 27747 invoked from network); 4 Dec 2004 09:14:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Dec 2004 09:14:57 -0000 Received: (qmail 59219 invoked from network); 4 Dec 2004 09:14:57 -0000 Received: from rproxy.gmail.com (64.233.170.198) by a.mx.sunsite.dk with SMTP; 4 Dec 2004 09:14:56 -0000 Received: by rproxy.gmail.com with SMTP id a41so11936rng for ; Sat, 04 Dec 2004 01:14:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=Mgefawysi0YQMbLR8sbnIL7spKcJPDsArTLuWe1oslopreUnTyjwm0QDbBjQfD6sjPVz33Vj87W5tH8vhDuFHM35wggYkdPbXtYlsaMd9jocHqs0xAYX+NA2p/eXVOeIvxjZ7dzrS27YHC/mbWfs58YGn+8JoluLGv1zbR1Ls0E= Received: by 10.38.86.69 with SMTP id j69mr1124861rnb; Sat, 04 Dec 2004 01:14:55 -0800 (PST) Received: by 10.38.125.24 with HTTP; Sat, 4 Dec 2004 01:14:55 -0800 (PST) Message-ID: Date: Sat, 4 Dec 2004 01:14:55 -0800 From: Felix Rosencrantz Reply-To: Felix Rosencrantz To: zsh-users@sunsite.dk Subject: Tool to unroll nested parameter expansions Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Anyone have a tool that can take a nested parameter expression (e.g. pats="${(@)${(@M)tmp1:#-g*}#-g}" ) , and break it down into simpler substeps, so it is easier to read. Some of the completion code uses complex parameter expansions, that are difficult to read, and it would be useful if there was something that could break it down into smaller more understandable steps, like a line per ${} section. -FR.