Comments (15)
Hello, are you running this on bash 4?
from flk.
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.
Thanks for the detail.
from flk.
I'm curious, why closed? Is it fixed?
from flk.
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.
@haroldcarr wait a second - did uou see the (env)
error on bash 5?
from flk.
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.
👍 cool thank you for the detail.
from flk.
FYI - this can be worked around by conda install coreutils
.
from flk.
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.
@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.
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.
@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.
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.
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)
- Carriage returns from sh* are incorrectly escaped HOT 1
- Makefile compilation mode failing [needs more info] HOT 13
- Some suggestions HOT 2
- Which versions of bash does this support? HOT 3
- Create and maintain a GitHub release instead of versioning the output file. HOT 1
- Makefile rule to create a sourceable version so that internals can be re-used. HOT 5
- Add tests for Fleck specific functions, re-using mal's test infrastructure.
- A way to get the return code from an sh* function interop call HOT 8
- How do I get CLI args? HOT 1
- stdin doesnt read to EOF. only till end of first form HOT 2
- Piping examples/ip-addresses.clj into flk hangs
- Keyword as a function seems broken HOT 1
- Are you using Fleck? I would love to hear about it. HOT 1
- str-pos should return the position of string a in string b
- quasiquote symbol "`" break when it is merged in __FLECK__REPCAPTURE
- Help request serialize HOT 3
- What is the license? HOT 6
- doc should say flk requires bash 4 or greater HOT 2
- range should be better supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flk.