From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2832 invoked by alias); 22 Aug 2017 17:50:10 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22850 Received: (qmail 27466 invoked by uid 1010); 22 Aug 2017 17:50:10 -0000 X-Qmail-Scanner-Diagnostics: from zic-mail02.zic-network.ch 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(193.47.103.28):SA:0(-2.6/5.0):. Processed in 1.378661 secs); 22 Aug 2017 17:50:10 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: oli@glow.li X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Date: Tue, 22 Aug 2017 19:49:53 +0200 From: Oliver Schmidhauser To: Oliver Kiddle Cc: zsh-users@zsh.org Subject: Re: _mpc breaks when folder contains spaces Message-ID: <20170822174953.GA18481@localhost> References: <20170822111229.GA28217@localhost> <29908.1503417477@thecus.kiddle.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29908.1503417477@thecus.kiddle.eu> User-Agent: Mutt/1.8.3 (2017-05-23) On Tue, Aug 22, 2017 at 05:57:57PM +0200, Oliver Kiddle wrote: > It looks like you forgot to include the attachment. Yeah, I seem to have forgot to attach it. Here it is. But yours is probably way better. Thanks for looking into this. --- _mpc.old 2017-08-22 11:31:01.336095638 +0200 +++ _mpc 2017-08-22 11:31:07.226095636 +0200 @@ -147,7 +147,7 @@ list=( ${${(f)"$(mpc listall)"}%%/*}) _wanted files expl file compadd -qS/ -a list else - list=(${(f)"$(mpc tab $words[CURRENT])"}) + list=(${(f)"$(mpc tab ${words[CURRENT]//\ / })"}) _wanted files expl file _multi_parts / list fi }