Giter VIP home page Giter VIP logo

Comments (15)

chr15m avatar chr15m commented on July 28, 2024

Hello, are you running this on bash 4?

from flk.

haroldcarr avatar haroldcarr commented on July 28, 2024

I am on a mac 10.15.7

When I first tried flk, that error is what I got.

I was picking up /bin/bash

/bin/bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)

So I did

brew install bash
bash --version
GNU bash, version 5.1.4(1)-release (x86_64-apple-darwin19.6.0)

then flk worked

from flk.

chr15m avatar chr15m commented on July 28, 2024

Thanks for the detail.

from flk.

haroldcarr avatar haroldcarr commented on July 28, 2024

I'm curious, why closed? Is it fixed?

from flk.

chr15m avatar chr15m commented on July 28, 2024

It is not a bug. You said you were using bash 3.2.57 when you saw the error, but that version of bash is not supported.

from flk.

chr15m avatar chr15m commented on July 28, 2024

@haroldcarr wait a second - did uou see the (env) error on bash 5?

from flk.

haroldcarr avatar haroldcarr commented on July 28, 2024

The bash 3.2.57 error had to do with declare -A

The env -0 IS a bug. -0 is not supported on FreeBSD and Mac OS.

THis bug should be reopened.

from flk.

chr15m avatar chr15m commented on July 28, 2024

👍 cool thank you for the detail.

from flk.

Tobias-Fischer avatar Tobias-Fischer commented on July 28, 2024

FYI - this can be worked around by conda install coreutils.

from flk.

joelmccracken avatar joelmccracken commented on July 28, 2024

Out of curiosity, do you have an idea of how difficult it would be to backport this project to bash for macos? It seems like the main challenge is usage of associative arrays.

from flk.

chr15m avatar chr15m commented on July 28, 2024

@joelmccracken It's conceivable but beyond my time and abilities. Here's an associative array implementation that works in Bash 3 for anybody who would like to tackle this in future: https://gist.github.com/chr15m/fb257ae8bb9774245b0ec67d9c7d388b

from flk.

joelmccracken avatar joelmccracken commented on July 28, 2024

thank you! There's another part to this in that I'm thinking of working on a bash implementation for Shen lisp, and I think a lot of the work you've done here could help me.

But also, I might just take this on, for a few reasons.

from flk.

chr15m avatar chr15m commented on July 28, 2024

@joelmccracken actually please don't use the associative array implementation I linked to, it is flawed. Most of the work in Fleck was done as part of the make-a-lisp project, I simply pulled together various threads to make Fleck. Best of luck with your Shen lisp implementation!

from flk.

joelmccracken avatar joelmccracken commented on July 28, 2024

Oh wow, I just read the comments; I didn't realize you generated this from a LLM. How interesting, what a warning.

fwiw I was planning on looking more deeply at that code before using it, it seems like a helpful starting point.

from flk.

chr15m avatar chr15m commented on July 28, 2024

Yeah at the very least Adam's ht function is certainly useful and you can probably figure out how to solve the collisions issue quite easily.

from flk.

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.