On Wed, Jan 29, 2020 at 06:38:31PM +0100, Ingo Schwarze wrote:
> Hi Andreas,
> 
> Andreas Kusalananda wrote on Wed, Jan 29, 2020 at 06:09:54PM +0100:
> > On Wed, Jan 29, 2020 at 05:48:44PM +0100, Ingo Schwarze wrote:
> 
> >> +.Dl du -sh * .??* | sort -h
> 
> > Why the ".??*"? That would miss single (well, double) letter hidden
> > directory names like .a, .b etc.
> 
> True, but those are very uncommon in practice.
> This is not supposed to be something that is perfect for each
> and every occasion, but just an example that is easy to type
> in interactive use and usually good enough.  Also, it is quite
> obvious that .??* won't match ".a".
> 
> > As far as I know, neither ksh(1) nor sh(1) expands .* to ..
> > (which I assume the ?? in .??* is a precaution against).
> 
> I have no intention of ensnaring users of other shells:
> 
>    $ uname -a
>   OpenBSD isnote.usta.de 6.6 GENERIC.MP#583 amd64
>    $ csh -c 'echo .*'
>   . ..

Ah, you are correct.  I see that it's a slight mischance that I've never
had to use csh(1).

Regards,

-- 
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.

Reply via email to