Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Looking for sage advice



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' $*

-- 
Felipe Contreras




Messages sorted by: Reverse Date, Date, Thread, Author