Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 8 insertions, 3 deletions
-rwxr-xr-xcsg11
diff --git a/csg b/csg
index 72c7031..1a6082d 100755
--- a/csg
+++ b/csg
@@ -82,9 +82,14 @@ isCommand() {
if [ -n "$CSG_AWK" ]
then :
-elif isCommand 'gawk'
-then
- CSG_AWK='gawk --posix'
+elif isCommand 'gawk' # GNU awk
+then CSG_AWK='gawk --posix'
+elif isCommand 'mawk' # Fast byte-code interpreter awk (by Mike Brennan)
+then CSG_AWK='mawk -W posix'
+elif isCommand 'nawk' # One true awk (by Brian Kernighan)
+then CSG_AWK='nawk'
+elif isCommand 'awk' # Original or other awk
+then CSG_AWK='awk'
else
echo '[Error] Couldn'\''t find an awk implementation!'
csg_help 4