Anvil / bash-doxygen

A doxygen filter for bash scripts
Do What The F*ck You Want To Public License
91 stars 24 forks source link

Functions not detected OSX El Cap (probably BSDs as well) #6

Closed charlesdaniels closed 7 years ago

charlesdaniels commented 7 years ago

Tested on OSX 10.11.6.

Functions are not detected correctly on Mac OSX. This is because OSX uses BSD sed. This will probably affect BSD OSes also, considering this. To reproduce, just run the unit test on a mac.

The workaround I have found is to install gnu-sed via homebrew, then use gsed instead of sed in Doxyfile.

Not sure if you want to support both versions of sed, but it might be helpful to others to make note of this workaround in the README.

Anvil commented 7 years ago

I will make a note about it in the README.md, thank you for reporting this. I don't think I will support other versions of sed for now, mainly because I don't have time for that. And other versions of sed.

If you have some patches to fix the compatibility, though, feel free to submit them.