Path: ...!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Java Jive Newsgroups: alt.os.linux Subject: Re: bash function: return array Date: Sun, 20 Feb 2022 11:11:26 +0000 Organization: A noiseless patient Spider Lines: 36 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 20 Feb 2022 11:11:28 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="1e863f058feb5749ec0a3441ca0a78ff"; logging-data="10880"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SH2t6cGApFK0tjqfB4TeVl3aZZGxbpXw=" User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Cancel-Lock: sha1:FtDWxznvx3a8Ogt4ws6IcRs0EzQ= In-Reply-To: Content-Language: en-GB Bytes: 1961 On 20/02/2022 10:26, alex wrote: > > Il 20/02/22 00:44, Java Jive ha scritto: >> >> Sorry, think that might need to be ... >> >> echo 'a b' c | xargs ls Well, here's five methods that work in MingW32: $ ls 'a b' c ls: a b: No such file or directory ls: c: No such file or directory $ ls "a b" c ls: a b: No such file or directory ls: c: No such file or directory $ ls a\ b c ls: a b: No such file or directory ls: c: No such file or directory $ echo \"a b\" c | xargs ls ls: a b: No such file or directory ls: c: No such file or directory $ echo \'a b\' c | xargs ls ls: a b: No such file or directory ls: c: No such file or directory -- Fake news kills! I may be contacted via the contact address given on my website: www.macfh.co.uk