I think grep man is easy way.
This way is maybe not perfect but maybe not wrong.
For examole Mac OS has BSD commands by default.
man man sed | grep -e BSD -e GNU | head -n 1
SED(1) BSD General Commands Manual SED(1)
On Mac OS g*** commands are BSD's. ( brew installed c )
man man gsed | grep -e BSD -e GNU | head -n 1
disable all GNU extensions.
bash-4.4$ man sed | grep -e BSD -e GNU | head -n 1
SED(1) BSD General Commands Manual SED(1)
bash-4.4$ man gsed | grep -e BSD -e GNU | head -n 1
disable all GNU extensions.
bash-4.4$ man cut | grep -e BSD -e GNU | head -n 1
CUT(1) BSD General Commands Manual CUT(1)
bash-4.4$ man gcut | grep -e BSD -e GNU | head -n 1
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
bash-4.4$ man stat | grep -e BSD -e GNU | head -n 1
STAT(1) BSD General Commands Manual STAT(1)
bash-4.4$ man gstat | grep -e BSD -e GNU | head -n 1
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
- Mac OS X High sierra