Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: SH_GLOB influence on a script and on an autoload function
- X-seq: zsh-workers 39229
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: SH_GLOB influence on a script and on an autoload function
- Date: Wed, 7 Sep 2016 21:01:16 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <160907112838.ZM13919@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBSCgG4Y87L_PzCEWDk=-cQLFmLxwps_rfvUUuhA-Np+w@mail.gmail.com> <160611101412.ZM12850@torch.brasslantern.com> <CAKc7PVC93FCfC1Xn9keAEyBaiHfaV+_nbKSUzhmwKLmmm4soMg@mail.gmail.com> <160907112838.ZM13919@torch.brasslantern.com>
On 7 September 2016 at 20:28, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
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<Tab>
Applications/ PRINT/
Save/ github/ test/
...
<Ctrl-C>
% emulate sh
% cd<Tab>
_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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author