zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: SH_GLOB influence on a script and on an autoload function
Date: Wed, 7 Sep 2016 21:01:16 +0200	[thread overview]
Message-ID: <CAKc7PVDd_e=-mDbfwG4j3010JD9CbdrpuaLM_wOnsaz+EqP1VQ@mail.gmail.com> (raw)
In-Reply-To: <160907112838.ZM13919@torch.brasslantern.com>

[-- Attachment #1: Type: text/plain, Size: 1721 bytes --]

On 7 September 2016 at 20:28, Bart Schaefer <schaefer@brasslantern.com>
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

  reply	other threads:[~2016-09-07 19:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-11  5:11 Sebastian Gniazdowski
2016-06-11 17:14 ` Bart Schaefer
2016-09-07 10:39   ` Sebastian Gniazdowski
2016-09-07 18:28     ` Bart Schaefer
2016-09-07 19:01       ` Sebastian Gniazdowski [this message]
2016-09-07 23:48         ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKc7PVDd_e=-mDbfwG4j3010JD9CbdrpuaLM_wOnsaz+EqP1VQ@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).