Re: Enhancement request for 'locate'

2024-04-22 Thread Bernhard Voelker
On 4/22/24 23:18, James Youngman wrote: locate-ls() { locate -0 "$@" | xargs -0 ls -ld } I'd suggest using -r there also, so that if no files are found, the user doesn't get a surprising listing of just "." (with its mod-time and so forth). $ xargs --help | grep empty -r, --no-run-if-e

Re: Enhancement request for 'locate'

2024-04-22 Thread James Youngman
> > > > locate-ls() { >locate -0 "$@" | xargs -0 ls -ld > } > > I'd suggest using -r there also, so that if no files are found, the user doesn't get a surprising listing of just "." (with its mod-time and so forth).