From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8495 invoked by alias); 16 Feb 2016 19:29:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21304 Received: (qmail 17442 invoked from network); 16 Feb 2016 19:29:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=D08HFnsli1h/UKrsByKb+93Uj50CiPbm1R+V3rKOUIs=; b=bNi258WDKey+GvlB5zzX8ocIhbyL6zB/DHx0NHJtPMYhlyvGuDxrmBVJK14U+JSGvQ K3PO7ZieDiAlvlUBIkIAe5gKxGLiH2nRXoHKDNn6YblWNLdDLb2L/c6R86mfgU2o0Yl6 urnniP6lNR24Qpa2Z3K3ZV+Mz4pQGQJYF8Z30vDvfYOaJH7t/AVUojOIBGOtqQhcSZQj y6nGZtB01DgHbcoENC5HT6JihZZmvApQ33xnRosW5ECmMkGwEhbcUgkyF9j1el8k8iuG E7TPWCTLhhPBXPlzm15NFhme4n/DZrGAkfzp29WZCSPhpA8HaSelB+Hi+tmQOmF7Dz/c 3qRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=D08HFnsli1h/UKrsByKb+93Uj50CiPbm1R+V3rKOUIs=; b=YqnQiIRjcUSB9h8LidPmGpGRsOAHKT1oHzEUWfus8s1FCI9ftfpf/hwxQ2T5ylVqgm bwRHtWYJnjWOOXkftXY9LhnBtljFA+EoZ61ZoKcj0/sQG0pxsLdiYwgSdZ8hP0x1/N89 Cw3L54+4vlgZu6pEhZA/2IR6HHBI52pyyROD7Ok3uXeiOc0H4L+IELnK7+6QbDT2Objb 9tCKI/32H7uRRBXQlL+zdWHbsnQ+2Q6+vOkK50QD1YCu5tNCuC9H3Of4Ht0ENQJHIQav EmouKpSvrYGnJlTnY+q535rgPTXA3g35n/8bgA8zntwX57o4oph/YNbN88ZPG9T07PLN h4fQ== X-Gm-Message-State: AG10YOQuBifkBDRM2dV4A9XW4AzltKYUhN0ArVJn9mn6rcH8+5EnBS/N6IqHAfpq+iv4IA== X-Received: by 10.67.21.205 with SMTP id hm13mr33542547pad.56.1455650953685; Tue, 16 Feb 2016 11:29:13 -0800 (PST) From: Bart Schaefer Message-Id: <160216112934.ZM31913@torch.brasslantern.com> Date: Tue, 16 Feb 2016 11:29:34 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Truncate $functions" (Feb 16, 9:05am) References: <160215091116.ZM27442@torch.brasslantern.com> <160215205153.ZM28963@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Truncate $functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 16, 9:05am, Sebastian Gniazdowski wrote: } Subject: Re: Truncate $functions } } Looking at define's -f output I have: } } _a2ps () { } # undefined } builtin autoload -XUz } } } _a2utils () { } # undefined } builtin autoload -XUz } } } _aap () { } # undefined } builtin autoload -XUz } } } } ... } } So it looks like I can have the options by parsing functions body? Yes, that would work. In fact you should parse for the "# undefined" line anyway, to identify the autoloads.