From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25930 invoked by alias); 27 Mar 2018 19:43:49 -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: List-Unsubscribe: X-Seq: 42545 Received: (qmail 24435 invoked by uid 1010); 27 Mar 2018 19:43:49 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-8.server.virginmedia.net 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(80.0.253.72):SA:0(-1.9/5.0):. Processed in 15.157406 secs); 27 Mar 2018 19:43:49 -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=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [86.21.219.59] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=CZ8mGojl c=1 sm=1 tr=0 a=utowdAHh8RITBM/6U1BPxA==:117 a=utowdAHh8RITBM/6U1BPxA==:17 a=kj9zAlcOel0A:10 a=x7bEGLp0ZPQA:10 a=xCCLRF3hAAAA:8 a=LmS9zTmP4CplF5fsEDAA:9 a=CjuIK1q_8ugA:10 a=PhG5usI1duurLUPoRPb1:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1522179195; bh=FmfAo8MB3zblaK3cDaoaX4Dd7QoKtBdNXOKNrilbUCA=; h=Date:From:To:Subject:In-Reply-To:References; b=vLkMZKeIBWRof6uDT7zVN7v9HI2svpwRF2yEeXDhJR2+y1kex3XehhqZQ8+W1mEih jOwDm9j7fxjyRY1ggeH9KbXPTfEGzNMN0+jADaSt50f4tJCW1dldSAHONAtMW34Xwg +wfER1NFScvlXl1vjjp1W+ADZarq9/vhoRu3yLHYPWdPrq0cot8Fe9GdFQS8LRwYvE HTPUjLNm41ugvaK63SFZ8DtCYtUtGHweii+8YfyVt2NKCgOBr6hjjCsLLjpE+qTqg/ 5/+7v6hPjAE+PrB6ZlQ5X0TrPD4iOchJiiiqdHNkOfaKEh8ovUPV0/FPGIWsE/Ob/J YFLA7N30ymtzg== Date: Tue, 27 Mar 2018 20:33:14 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: _sh doing _normal completion Message-ID: <20180327203314.6c6fbdde@ntlworld.com> In-Reply-To: <87sh8lfxrf.fsf@gmail.com> References: <87sh8lfxrf.fsf@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfNjflcbUW9h4a+RfWPfq7M9SKVBLFHJ80KzTCM3u+E3GxRXmHXue5MikHGkKtUTdbg0uuaEnPTubUKi9fVW87mr1fYYi/X40ybcOnt3HO/kK3J+aufWK rX44Ls89V9ViQfzGk+lvdTmWaUcfkXKB1tGd6hSiOzGpTEgsVInlTSRmHh5IkgAs9YPYfe9RgRr7ag== On Tue, 27 Mar 2018 15:34:12 +0200 Leah Neukirchen wrote: > the default _sh completion tries _files, then falls back to _normal. > However, sh, [t]csh and rc don't support this, and ksh/bash only > support it for actual shell scripts. > > So I wonder if this is a reasonable completion? Do you mean falling back to _normal isn't sensible, i.e. it's not worth assuming you can specify an executable command or similar after the file name, since it's unlikely the shell can handle it? It's not a particularly sophisticated fallback, certainly. It's possible you could think of a better way of searching for finding a script in the path, which I guess is the real intention. Until someone does, this is probably going to stay the best we've got. pws