From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2436 invoked by alias); 7 Sep 2016 19:09:11 -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: 39229 Received: (qmail 7866 invoked from network); 7 Sep 2016 19:09:10 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f174.google.com 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(209.85.220.174):SA:0(0.0/5.0):. Processed in 0.419988 secs); 07 Sep 2016 19:09:10 -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=0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.174 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PQstLpSTqOBCr1sgwCjKMYj56ywLtGvvRB8o1zgRHMM=; b=dmNvWJdMQp4mOCuwwr+wQOKDB7LybnxnOikDBlivT/rca++i2Qy9FLp4nCV7WwfDpz /p63gfpC2ZA0V8ceoooqnYqDriEAKlv4y3oHJn+HSRR1560cEfjX1QWPcxwSLcTwx18u Lmwb/c3T2KgZ7mViZ/auuITugyAcleyjoOqLsIeS9rEZpL9WRMcpwczHL09asdR+PQwv 0bvJG+v/OpUOmdhrIN8ax+Ni5z1HIgykhfSfu3QCVx5BO4CfBcS3vAu/IBiZLaEW9m30 xw/JSt0zVMiDBVgZO5xHQbqaE8e3femrAvMzU88Qdcqbv9u+6ndjVRSTwvkT/JpR+eDJ veJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PQstLpSTqOBCr1sgwCjKMYj56ywLtGvvRB8o1zgRHMM=; b=E5V3k22Rh2sP5PpaEMQ5H9bgoJEOXgCb6Z32EbbcOq+m0Rn5qM/PbFrJEORRmC/xBV vVHUt17D+65K032hk9UR81utabmhe4/MTb6GwG7GrLWx5M+OvavVQrGr6clRIzS8Je/D 8Wzj5ymH6eAIzNOVr0WSwgUKnheH36RS9yYAlJPpmOjfqG2yuQ2rJb4u+TD0HJ1nyh9a 5VsdYXxaRGaLoa4OyEV8mb8fY5XEXoCF+0EgwIGsdNSHyZa3eXcAz91tx6PD51QMc/xn Rj82qf13mA58h5StOQaKViqBl2c4Job6OCmjmXaXdM6pZppAYlwnuKJcLuI1g6yZwk1L IKYA== X-Gm-Message-State: AE9vXwPyhXSc+SB9T+6I1jCYlfcFlxF0KIn0CZb3TlF/sLJx/XkOXEqUYkw0PGgcfqMnyW2l5TFOBIXxwCbH6Q== X-Received: by 10.55.132.71 with SMTP id g68mr56149418qkd.50.1473274897055; Wed, 07 Sep 2016 12:01:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <160907112838.ZM13919@torch.brasslantern.com> References: <160611101412.ZM12850@torch.brasslantern.com> <160907112838.ZM13919@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Wed, 7 Sep 2016 21:01:16 +0200 Message-ID: Subject: Re: SH_GLOB influence on a script and on an autoload function To: Bart Schaefer Cc: Zsh hackers list Content-Type: multipart/alternative; boundary=94eb2c0760dce556bb053bef8af7 --94eb2c0760dce556bb053bef8af7 Content-Type: text/plain; charset=UTF-8 On 7 September 2016 at 20:28, Bart Schaefer wrote: > On Sep 7, 12:39pm, Sebastian Gniazdowski wrote: > I'm thinking about a far away > } possibility that one could fully work with emulate sh, having completions > } not reporting errors. > > I've lost track of this thread. What present error is being addressed? > Seems to me that completion uses zsh syntax internally, so you'd be more > likely to have an error in the other direction, i.e., the command line > expects SH_GLOB but the internals treat it like zsh ...? > I sometimes think about making emulate sh a possible interactive setting. Let it just be that one would be able to temporarily switch to sh to check something and then switch back. Currently there are errors reported: # zsh -f % autoload compinit % compinit % cd Applications/ PRINT/ Save/ github/ test/ ... % emulate sh % cd _cd:63: bad math expression: operator expected at `tmpcdpath ' _description:63: bad math expression: operator expected at `comp_ignor...' _next_label:63: bad math expression: operator expected at `funcstack ...' _description:63: bad math expression: operator expected at `comp_ignor...' _path_files:63: bad math expression: operator expected at `pfx ' _path_files:63: bad math expression: operator expected at `prepaths ' _path_files:63: bad math expression: operator expected at `ignore ' _path_files:63: bad math expression: operator expected at `ignore' _main_complete:332: bad math expression: operator expected at `lastdescr' _main_complete:372: bad math expression: operator expected at `comp_color...' Best regards, Sebastian Gniazdowski --94eb2c0760dce556bb053bef8af7--