News for hackers. Stuff that matters.
Re:Exa Is Deprecated by mingus88 on Thursday September 07, 2023 @09:19AM (#37418501)
Either way, it still speaks to the maintainability of these modern replacements, many of which are personal projects.

tools like ls or grep are certainly showing their age, but that has also been their strength. The POSIX ecosystem comes in many flavors but I can always depend on it.

It’s not like I can ever expect to shell into any arbitrary system or container and expect to have exa/lsd/rg or any of these nice replacements available to me. My tooling needs to be somewhat more portable.

Re:Exa Is Deprecated by Klonoar on Thursday September 07, 2023 @09:30AM (#37418638)
> My tooling needs to be somewhat more portable.

Ah yes, because it's 100% impossible to learn new tools and fall back to the core ones when you need to. ;P

I've been doing this for decades now, it's just not that big of a deal.

Re:Exa Is Deprecated by jjgreen on Thursday September 07, 2023 @10:20AM (#37419274)
... as in

   if [ -z "$(which exa)" ]
   then
     LS1='ls -1'
   else
     :
   fi
   ${LS1} ${SOME_DIR} | ... 

?
Re:Exa Is Deprecated by Macha on Thursday September 07, 2023 @10:41AM (#37419588)
I just have in my personal systems ls aliased to exa (with some of my preferred options like group-directories-first) and on other systems it's still ls. So my usage is the same regardless of whether it's exa or ls. This isn't a programming language or a complicated tool like jq vs competitors where what I need to do changes. I just get the nicer presentation on my local machine and "graceful degradation" back to the defaults of GNU ls on remote machines which don't have my preferred setup installed on them.
Re:Exa Is Deprecated by dataflow on Thursday September 07, 2023 @10:49AM (#37419715)
If you do that consider if command -v exa > /dev/null instead, so you don't spawn subprocesses unnecessarily.
Re:Exa Is Deprecated by Conscat on Thursday September 07, 2023 @03:24PM (#37424278)
Exa is an interactive utility. It doesn't make much sense to put it in a script like that. If you were to use rg or ug instead of grep, branching like that would probably be worthwhile, though.