There are problems with this idea of a colon in the path to an executable, specifically with using said path in the PATH environment variable as in PATH="/home/bballdave025/abc\:def:$PATH". In fact, there are enough problems that I've decided to take this part of my solution out, since the problem isn't really ... real. However, I leave a reference to Note 3, in case someone has no control over a colon being in the path of an executable.
bballdave025
- 460
- 4
- 15
Cutting out things that had become extraneous as things I'd shared got corrected. This was a good learning answer.
bballdave025
- 460
- 4
- 15
Cutting out things that had become extraneous as things I'd shared got corrected. This was a good learning answer.
bballdave025
- 460
- 4
- 15
adding `sh` after the last single quote. Aligning shell arguments with `xargs` arguments
bballdave025
- 460
- 4
- 15
Give a localizing version of the `IFS=` solution, so as not to set the main environment's `IFS`. Crediting @terdon.
bballdave025
- 460
- 4
- 15
Fixing code to remove unnecessary scrolling of a code line (the line is split with a linefeed).
bballdave025
- 460
- 4
- 15
Making changes for efficiency and correctness as per a comment by @Raffa. Removing `-I'{}'` from after `xargs` and putting double quotes around `$PATH`, so its expansion doesn't break paths with spaces in them.
bballdave025
- 460
- 4
- 15
bballdave025
- 460
- 4
- 15