Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _ssh_hosts: abort early if in a path
- X-seq: zsh-workers 44378
- From: Jun-ichi Takimoto <takimoto_j@xxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _ssh_hosts: abort early if in a path
- Date: Wed, 29 May 2019 22:57:49 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1559138271; bh=ZDLNi7b61CiaTLXklUCQw0nQw9TeUIYojWxmTfivDzo=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=QXWffkF7SuC7Xd945ujHJeSRQ5tBe0Iq4I4VWzoQPj6HrwTbfMvpqJHJ0szSXi5Fw 6OhKoKphZJuWRZizE078QiCmRotFID+0sHIkp8wTj6Bi43Xaz2DMtAnF+sX3iCzWkx HF9E4YZTaTIBLnl2pTjYZnGWQpVDDX8dc92vjDzRFWd5h0A/a3YCd4BsB2+WnBtBH2 sJE0i46JPTPi6zCG1L3Stt74o2zTymZh7q0VgkEFsOQ5TcPO7sxWQNBI3tEQZsNRwd U18etZJfLKM/rOtQxZ5n4AHawUhYR/XvJ/yJ0WIyvIUxPYK940shUhH7OceFdWpd5d kEuItfPUYULdg==
- In-reply-to: <20190527233331.GA84827@phil-pennock>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20190527233331.GA84827@phil-pennock>
> 2019/05/28 8:33、Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>のメール:
>
> +case "$PREFIX" in
> + ( /* | ./* )
> + return
> + ;;
> +esac
Isn't it better to "return 1"?
_ssh_hosts (before your patch) does not return 1 even if it can't
find any matches. Maybe better to fix this also?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author