From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4901 invoked by alias); 6 Apr 2015 16:43:32 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34852 Received: (qmail 6851 invoked from network); 6 Apr 2015 16:43:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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=d3HMTCAzGCifwaLnlyn68vSa0bjHUoYVtDPGYto+UBk=; b=nH4xWtqpJvsRWTuz+4f18lifWt3ioR1OXYdFM6QNUbZOlWIokUZ6K60tZxlfXufZbC 1sFSvzjRcHgKc0k4O7ackqPe4siDPfuk2gzWyPqV9mOFYbYZw+W89TUvH9vzqodps9e8 IyyOjtwJKpR7L0OBaaB6akUkZgnaTqa88Sl+WK9OvjPIfVyAL1XwCQhAeQe//iGNPFNT Wmn6mYFC6WrgEmX7D0eHqfBMl5jaTEQcW5DAmtuIM2hBzOlLYzFVYeHxTPRatgnmoXyd f0O7TEhg9Bf39WcXjBIAdJmbVupyyZ4OCYDjAckena/QoLlH3rYDu4kMfW/HH4oOSviK NzKg== X-Gm-Message-State: ALoCoQlvVTZfVMOd4Dan3/zrq0BFcs6Bp0R5RCouJBvDpwCdwqDzo7nq46c+QHv1cCkFEyYwbNZn X-Received: by 10.182.216.135 with SMTP id oq7mr5966807obc.66.1428338608047; Mon, 06 Apr 2015 09:43:28 -0700 (PDT) From: Bart Schaefer Message-Id: <150406094325.ZM20639@torch.brasslantern.com> Date: Mon, 6 Apr 2015 09:43:25 -0700 In-Reply-To: Comments: In reply to Mikael Magnusson "Re: Is it possible to find the location of a function definition?" (Apr 6, 6:57am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: whence and the location of a function definition MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 6, 6:57am, Mikael Magnusson wrote: } } another way is to apply this patch: } http://git.mikachu.zsh.jp/commit/?h=mika&id=225140c2aa029c9f19615c5894c4813a88afca49 } and then run whence -F thefunc This looks useful, especially if the "(unknown)" branch could report whether the function is autoloaded. Any opinions on whether it needs its own option, or if it could always be appended to the "-v" output, e.g. compdef is a shell function from /usr/share/zsh/functions/Completion/compinit