• Feature which every AWK should have?

    From yeti@yeti@tilde.institute to comp.lang.awk on Wed Jul 17 12:32:18 2024
    From Newsgroup: comp.lang.awk

    * I think GAWK's -E and MAWK's -We really makes scripts more robust.

    * Bit ops (shifts, and/or/xor) as seen in the BSD branch of Onetrueawk.
    --
    I do not bite, I just want to play.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From gazelle@gazelle@shell.xmission.com (Kenny McCormack) to comp.lang.awk on Wed Jul 17 12:13:30 2024
    From Newsgroup: comp.lang.awk

    In article <87ttgo8cg5.fsf@tilde.institute>,
    yeti <yeti@tilde.institute> wrote:
    * I think GAWK's -E and MAWK's -We really makes scripts more robust.

    * Bit ops (shifts, and/or/xor) as seen in the BSD branch of Onetrueawk.

    Well, GAWK (*) has both of these, so I'm not sure what the issue is.

    As I've mentioned a zillion times, there's really no reason to use any
    other flavor of AWK (besides GAWK or TAWK).

    (*) And, TAWK, too. At least the bit-twiddling stuff. Not sure about the
    -E - since I've never used it.

    Note: I just now read the latest "man gawk" to see what "-E" is. I have to admit, I don't get it. FWIW, when I first read this thread, I assumed -E
    was some variation of invoking "lint" (sorta like "strict" in that other scripting language - the one that rhymes with Earl).
    --
    I love the poorly educated.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From anthk@anthk@openbsd.home to comp.lang.awk on Mon Mar 24 21:31:32 2025
    From Newsgroup: comp.lang.awk

    On 2024-07-17, yeti <yeti@tilde.institute> wrote:
    * I think GAWK's -E and MAWK's -We really makes scripts more robust.

    * Bit ops (shifts, and/or/xor) as seen in the BSD branch of Onetrueawk.


    getchar, as the function from tgl.awk, but without calling od.

    git://git.luxferre.top/awk-gold-collection.git

    clone the repo recursively.
    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From anthk@anthk@openbsd.home to comp.lang.awk on Mon Mar 24 21:31:33 2025
    From Newsgroup: comp.lang.awk

    On 2024-07-17, yeti <yeti@tilde.institute> wrote:
    * I think GAWK's -E and MAWK's -We really makes scripts more robust.

    * Bit ops (shifts, and/or/xor) as seen in the BSD branch of Onetrueawk.


    getchar, as from tgl.awk at git://git.luxferre.top/awk-gold-collection.git

    But with od, native. Or by reusing awk functions.
    --- Synchronet 3.20c-Linux NewsLink 1.2