Tag Info

New answers tagged

-2

Not sure there is any "officially BSD preferred" way, but my preferred method is cmake. While it's name is misleading as it performs the configure step and generates make files, it doesn't replace make or gmake. It can generate unix makefiles as well as xcode, qtcreator, visual studio, borland and many other project files. Cmake's syntax is clear and easy ...


0

Not a direct answer to your question, but I have wrapper scripts to handle things like this rather than extra complication in the .bashrc For example here is my l script that handles your case here in a cross platform way: http://www.pixelbeat.org/scripts/l


3

Littering the code with if statements to perform a switch on the type of coreutils does work, however the clean programming solution for handling different types is to use polymorphism. Since this is Bash, we don't have polymorphism per se, but I've been messing around with a way to fake it. The only requirement is that your .bashrc file etc. be organized ...



Top 50 recent answers are included