Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: autocompletion is broken in restricted shell
- X-seq: zsh-workers 41075
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: autocompletion is broken in restricted shell
- Date: Mon, 8 May 2017 11:03:05 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>, Jan Kryl <jan.kryl@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nHEHjnNv7wtPyyzMMkqal10dApr4L73bwhtkVt9hv2A=; b=J0xTaEFsGJDzuxIxdQmOVwcrU+OBFrTDSJGHqIA+8IBRFc8IAPy6pppNCAreiyc0UT MKi87Bw8aSdAJq0r0MvgCRRevo14WVV/+w1zEaiI4M3r0PgryYKyXMIg9ssLV9rjdHPf LXVQwduyBLpYVPAhjk1gzkwMaJrrcVrtfc7UKw3oOvWL2uHe8jt0FMep5ZD7TNiOcLsY R2d3778VJRjDlQ95QxNm9ZfRpCe33x3Bs+jc+pf47vpR86qdX8qGOgD3NRu0W4zDukao d9ZkQnmnNcUJZhGjkbWi9wAe1nHvyKrZkBQGIAS2s9VM4ztMON0hob0Op5KER4goIJBW ZXVA==
- In-reply-to: <20170508174847.6fe6b571@pwslap01u.europe.root.pri>
- 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: <CGME20170508093906epcas5p35e1b5c235b94e4b754107d42c915e638@epcas5p3.samsung.com> <11381B06-E104-4785-8BB7-AC5E5B0296F0@nexenta.com> <20170508174847.6fe6b571@pwslap01u.europe.root.pri>
On Mon, May 8, 2017 at 9:48 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Mon, 8 May 2017 11:38:37 +0200
> Jan Kryl <jan.kryl@xxxxxxxxxxx> wrote:
>> That can be avoided by using 2>&- instead of 2>/dev/null.
>
> I'm not sure if you're realistically going to get an error message from
> there as long as the shell supports that syntax, so it's probably
> reasonable to apply this and see what happens.
Although this won't matter 90+% of the time because "enable" rarely
emits an error, I think it's going to complain when there IS an error:
% () { print -u2 OOPS } 2>&-
zsh: write error
If you're going to get error output anyway, you might as well drop the
2> and get *useful* error output.
However, there are a zillion other places in completion where we
redirect stderr to /dev/null, so changing that single one in compinit
isn't going to fix the general problem.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author