Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Looking for sage advice
- X-seq: zsh-users 27958
- From: Perry Smith <pedz@xxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Subject: Re: Looking for sage advice
- Date: Mon, 15 Aug 2022 16:47:47 -0500
- Arc-authentication-results: i=1; rspamd-7697cc766f-6jztr; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@xxxxxxxxxxxxxxxx
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1660600069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=giVA3VSB9BQ7ZMYSAMl51SUClJyRq0wrAQ39Yba4BvQ=; b=ANL9wqa8/XN2ZY59WICxZiPqLZKOt4m/6cFrauW8r7BGLlqYI49kgZdxL6D5LVNglSkfcd KpzARi/98gXNV/fJSKg146kv31S+P+mfc3vKnyykYmdwTBX5/dPKv8RGYMq1OJ0WZKVI6o UHMLJFJRWOCVEuvb72h7jXFA7ni3YK30pQyKVWL5LM5GmhmEJQl15C4vslIRP8viP98Fdt vWkvWJnZQnT9wsxwus4EF7VnDhHdXEKZeQGM/7+bF6iVrwqexRDQQ65crSkpdRoaN3at3H UXucfzGu83jB5L6bhSlpO8jLhXOfCXWfU4tOnDtcH9SI4NJ75i5tlMr/s/Xg9A==
- Arc-seal: i=1; s=arc-2022; d=mailchannels.net; t=1660600069; a=rsa-sha256; cv=none; b=QEeedtG/narJlnJa8RteUIzQ/ri+Twx9n23cS3+VzrPUjUpFNOQFIrCRMTO7KHvTqzuicr MI+OOFBJBtuJLD7x9fpSsxsXMa0cTbX87p9rda6EFU5XO3sh4fFNikfKJ62BeCM2ImoFcx LwQJrMKHb2IfRi4SZA/1I7SIIcm+AHN6UTWk7exgheEspL5e5DPt+OHmxmt4oD+bMU+M+0 40L21ThWufRZMPFhYgL366nFbcUMruZoqA5y0d9r+OY2Qktom3ohFWNfdTAKDRsVuXzWtm A3rSJberLc43iPWvvVijG0HXgL/qHb1RNLUpFbWX12aGU5G2v46/HIvpOux8+A==
- Archived-at: <https://zsh.org/users/27958>
- In-reply-to: <CAMP44s2Zrz0o=eed-uFbuartgYAv1Cc=cKh=xhb5-H9pUu0=NA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <1A03F8D3-45EB-41B4-BD7A-0A12DE5B7C85@easesoftware.com> <CAMP44s2Zrz0o=eed-uFbuartgYAv1Cc=cKh=xhb5-H9pUu0=NA@mail.gmail.com>
> On Aug 15, 2022, at 16:42, Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
>
> On Mon, Aug 15, 2022 at 4:04 PM Perry Smith <pedz@xxxxxxxxxxxxxxxx> wrote:
>>
>> I want to write “something” that effectively does
>>
>> function xlargs
>> {
>> tr ‘\n’ ‘\0’ | xargs -0 $*
>> }
>>
>>
>> Would you recommend doing this as an autoload function or as an alias? The reason I ask is because back when I used bash and something called rvm, all of my aliases proved to be a horrible wrench for their bash shell scripts. So I’ve sorta sworn off of aliases but I’m wondering if that is imprudent.
>
> If you are doing multiple commands I would do a function, but I wonder
> what's the point of this when you can do: xargs -d '\n' $*
Thank you.
It appears that neither macOS nor Free BSD have the -d option. I see it in the Linux documentation but, yes, that is exactly what I’m needing.
Attachment:
signature.asc
Description: Message signed with OpenPGP
Messages sorted by:
Reverse Date,
Date,
Thread,
Author