[19:25] <Eickmeyer> OvenWerks: You should be able to test for the location of a command in $PATH using "command -v". Don't use 'which', it's being depricated.
[19:29] <OvenWerks> Eickmeyer: I was already assuming python has a better way to do this :)
[19:32] <Eickmeyer> Oh, yeah, I don't know about that, but I know you can query python for the output of a command.
[19:32] <OvenWerks> Eickmeyer: you will never guess what the python method is... shutil.which()
[19:32] <Eickmeyer> LMAO That's hilarious.
[19:32] <OvenWerks> Long Live Which
[19:32] <OvenWerks>  :)
[19:33] <Eickmeyer> Yeah, but I doubt it's using the actual "which" command as a backend.
[19:33] <OvenWerks> why people would depricate something simple like which to something no one has heard of sounds dumb.
[19:35] <OvenWerks> command should be changed so that if parameter 0 is which it acts that way.
[19:35] <OvenWerks> (ie. a link called which that points to command should just work... otherwise bug
[19:37] <OvenWerks> basic unix commands should always continue to work
[19:41] <Eickmeyer> Right, not sure why it's depricated, but probably because it was duplicating the work of "command -v".
[19:42] <OvenWerks> except any book that teaches unix commands teaches which
[19:43] <Eickmeyer> Yeah, again, I have no idea why, but remember, GNU's Not Unix (tm).
[19:44] <OvenWerks> no but gnu has created almost all the commandline tools unix depends on. The gnu commandline tools are effectively the standard commandline tools.
[19:46] <Eickmeyer> I mean, I agree, but which in 22.04 was giving the error that it was being depricated in favor of "command -v". The release team reverted that for now since it's an LTS and nobody wants that going bad yet.
[19:48] <OvenWerks> command is a part of bash it seems.
[19:49] <OvenWerks> does sh include command as well? seems to... except I think our sh->bash :P
[19:50] <OvenWerks> one wonders about ash and csh too.
[19:51] <OvenWerks> or for that matter any shell script that is not run from bash.
[20:00] <Eickmeyer> Yeah, no clue. I just know it was saying "This version of which is depricated. Use 'command -v' instead in scripts."
[20:12] <OvenWerks> Anyway, python has which ;)
[20:14] <Eickmeyer> :)