Re: bash, find and error message question

2020-02-01 Thread songbird
David Wright wrote: ... > My question would be: > > Which directory is your current directory—what does pwd say? > After all, the error messages say "reading directory '.': Protocol error", > and not knowing where you are is unsettling for any command. in the script i'm using a variable but the

Re: bash, find and error message question

2020-02-01 Thread songbird
Reco wrote: > songbird wrote: ... >> i don't care if it is returned, i just wonder why it isn't >> redirected to /dev/null like i'm asking it to do. > > Because you're redirecting stderr of a wrong process. > This one-liner should do it. > > find . -type f -exec printf %.0s. {} + 2>/dev/null | wc

Re: bash, find and error message question

2020-02-01 Thread David Wright
On Sat 01 Feb 2020 at 13:38:55 (-0500), songbird wrote: > Reco wrote: > > On Sat, Feb 01, 2020 at 12:36:28PM -0500, songbird wrote: > >> the directory is a mount point of a device in limbo. > >> it is showing up as mounted but it really isn't (the > >> device is turned off). > > ... > >> > >> i

Re: bash, find and error message question

2020-02-01 Thread Reco
On Sat, Feb 01, 2020 at 01:38:55PM -0500, songbird wrote: > Reco wrote: > > On Sat, Feb 01, 2020 at 12:36:28PM -0500, songbird wrote: > >> the directory is a mount point of a device in limbo. > >> it is showing up as mounted but it really isn't (the > >> device is turned off). > > ... > >> > >>

Re: bash, find and error message question

2020-02-01 Thread songbird
Reco wrote: > On Sat, Feb 01, 2020 at 12:36:28PM -0500, songbird wrote: >> the directory is a mount point of a device in limbo. >> it is showing up as mounted but it really isn't (the >> device is turned off). > ... >> >> i just want the answer to be 0 or the number of files. > > Fuse does not w

Re: bash, find and error message question

2020-02-01 Thread Reco
Hi. On Sat, Feb 01, 2020 at 12:36:28PM -0500, songbird wrote: > the directory is a mount point of a device in limbo. > it is showing up as mounted but it really isn't (the > device is turned off). ... > > i just want the answer to be 0 or the number of files. Fuse does not work that wa