Giter Club home page Giter Club logo

Comments (4)

dubiouscript avatar dubiouscript commented on May 23, 2024

..
edit : just found
https://github.com/whiteinge/ok.sh/blob/master/.github/ISSUE_TEMPLATE/bug_report.md
...

lubuntu 18.10
curl -V
curl 7.61.0 (x86_64-pc-linux-gnu) ...
realpath $(which awk )
/usr/bin/mawk
mawk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
jq -V
jq-1.5-1-a5b5cbe
bash --help
GNU bash, version 4.4.19(1)-release-(x86_64-pc-linux-gnu)
./ok.sh from git clone https://github.com/whiteinge/ok.sh.git =S

ok.sh -vvv -x list_issues nixos/nix 2> ok-shdebug.log
ok-shdebug.log git cloned
./ok.sh-0.3.0/ok.sh -vvv -x list_issues nixos/nix 2> ok-shdebug.log
ok-shdebug.log

from ok.sh.

whiteinge avatar whiteinge commented on May 23, 2024

Interesting. Thanks a lot for the solid sleuthing! The version of mawk in Homebrew doesn't exhibit the same problem -- maybe it's compiled against a different regex lib than in Nix 🤷‍♂️.

That said, replacing [[:space:]] is a fine change and works as expected with mawk, gawk and BSD awk on OSX. Do you want to send in a PR?

from ok.sh.

dubiouscript avatar dubiouscript commented on May 23, 2024
  • maybe it's compiled against a different regex lib than in Nix

this was with the mawk from lubuntu 18.10.
*was just attempting view list the issues from nixos/nix
... in fact nix-shell -p jq -p mawk appears to work

sudo apt-get source mawk
says
mawk 1.3.3-17ubuntu3 - https://launchpad.net/ubuntu/+source/mawk/1.3.3-17ubuntu3
https://launchpad.net/ubuntu/cosmic/+source/mawk
... i didnt see any regex lib listed in the deps so..
idk..but some patch is applied to fix some thing regarding regexp so it could be that ?

just for reference .. im guessing this is the homebrew mawk build-config
https://github.com/Homebrew/homebrew-core/blob/master/Formula/mawk.rb

Do you want to send in a PR?

i guess ! . .
( not that familiar with PR process though tbh ... )
done?

from ok.sh.

whiteinge avatar whiteinge commented on May 23, 2024

Thank you for tracking down the problem and then fixing it! Awesome work.

from ok.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.