dylanaraps / pure-sh-bible

📖 A collection of pure POSIX sh alternatives to external processes.
MIT License
6.45k stars 281 forks source link

Count returns 0 when no matching file/directory exists. #11

Open melangston opened 4 years ago

melangston commented 4 years ago

This version also allows editing the function to count entries that match one or more of the test expressions in sh (ie test -{f,d,h,p,...,} for {files,directories,symlinks,named pipes,...,}.