diff options
| Commit | 07a8ef9e92904678df329ede995a459ae252adbf (patch) | |
|---|---|---|
| Author | 2024-07-23 09:01:02 +0300 | |
| Committer | 2024-07-23 09:01:02 +0300 | |
| Files | 681ea7ea535f8ae7323fd9a550a3adcaed60b436 | |
| csg-07a8ef9e92904678df329ede995a459ae252adbf.tar csg-07a8ef9e92904678df329ede995a459ae252adbf.tar.gz csg-07a8ef9e92904678df329ede995a459ae252adbf.zip | ||
| Parent | 4ae3a7acae7d22d7111bbaeec22fdf5909a26747 (diff) | |
(csg) Improved awk command searching
1 files changed, 8 insertions, 3 deletions
| -rwxr-xr-x | csg | 11 |
@@ -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 |
