Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit07a8ef9e92904678df329ede995a459ae252adbf (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-07-23 09:01:02 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-07-23 09:01:02 +0300
Files681ea7ea535f8ae7323fd9a550a3adcaed60b436
csg-07a8ef9e92904678df329ede995a459ae252adbf.tar
csg-07a8ef9e92904678df329ede995a459ae252adbf.tar.gz
csg-07a8ef9e92904678df329ede995a459ae252adbf.zip
Parent4ae3a7acae7d22d7111bbaeec22fdf5909a26747 (diff)
(csg) Improved awk command searching
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