From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6165 invoked by alias); 8 Apr 2018 22:38:39 -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: List-Unsubscribe: X-Seq: 23325 Received: (qmail 3743 invoked by uid 1010); 8 Apr 2018 22:38:39 -0000 X-Qmail-Scanner-Diagnostics: from mta03.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.9):SA:0(-2.6/5.0):. Processed in 1.23635 secs); 08 Apr 2018 22:38:39 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=dfKuI0fe c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=cPlowVrkLCCpwIeEa9oA:9 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.101.9 Subject: Re: activate alias inside subshell To: zsh-users@zsh.org References: <604319cb-d86f-686b-ac9b-00d21650edff@eastlink.ca> <637434d9-ff23-53d4-5d31-443942fc2ef9@eastlink.ca> From: Ray Andrews Message-id: Date: Sun, 8 Apr 2018 15:38:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 In-reply-to: Content-language: en-CA > BTW, results are hugely different if the redefined message function is > redefined with or without 'function' prepended: " function msg () ... > " vs. " msg () ... ".  Most comments found on the internet suggest > there should be no difference but that is not so, one changes things > externally, the other does not.  It added to the confusion. > Well zsh-5.5 behaves quite differently with or without '-f': # . test1; test1 test1:6: defining function based on alias `msg' test1:16: parse error near `()' zsh: permission denied: test1 ... so it seems that I'm not going to get away with my previous anymore.   Is there a new strategy that might work?  Nullify the function and/or the alias?  Really, just some way of stopping messages from printing at all? > >