Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS 11.6.1 #29

Open
mikkeo opened this issue Dec 2, 2021 · 6 comments
Open

MacOS 11.6.1 #29

mikkeo opened this issue Dec 2, 2021 · 6 comments

Comments

@mikkeo
Copy link

mikkeo commented Dec 2, 2021

Tried to run it, complained about needing gawk-cmd

Ran brew install gawk

Then ran kanban, got following error:

conditional binary operator expected
kanban: line 222: syntax error near "maximum_todo[$status]"' kanban: line 222: [[ -v "maximum_todo[$status]" ]] && maxlines=${maximum_todo[$status]}'

Code there looks like:

maxlines=0
[[ -v "maximum_todo[$status]" ]] && [[ maxlines=${maximum_todo[$status]} ]]
[[ ${maximum_todo[$status]} > -1 ]] && [[ $nlines > ${maximum_todo[$status]} ]] && label$
echo -e ".$(strtoline "$label" "~")~~.\n| $label |_______\n|" > $TMP.col.$i
@fritx
Copy link

fritx commented Aug 23, 2022

# same error
$ ./kanban list
gawk-cmd not installed..aborting (maybe install coreutils util-linux pkgs?)

@tudormunteanu
Copy link

@fritx , I've ran:
brew install coreutils util-linux gawk and then got the same error as @mikkeo

@fritx
Copy link

fritx commented Sep 23, 2022

@tudormunteanu @mikkeo I got it to work! try brew install bash

ζ brew install coreutils util-linux gawk

ζ ./kanban list
./kanban: line 222: conditional binary operator expected
./kanban: line 222: syntax error near `"maximum_todo[$status]"'
./kanban: line 222: `    [[ -v "maximum_todo[$status]" ]] && maxlines=${maximum_todo[$status]}'

ζ brew info bash
==> bash: stable 5.1.16 (bottled), HEAD

ζ . ~/.bashrc

ζ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.

ζ brew install bash

ζ ./kanban list
id  status  tag  description  history
-   -       -    -            -

refs: sclorg/s2i-python-container#104, matrix-org/complement@b896382, matrix-org/complement#73

image

@fritx
Copy link

fritx commented Sep 23, 2022

I have some commits to make kanban.bash more compatitable with macOS and bash3 also
https://github.com/we-fork/kanban.bash/commits/compat

@StrikingLoo
Copy link

Hi everyone! I'm on a Mac. Thanks to this issue I got to the point where add, csv and individual column commands work fine. However if I do kanban show or kanban list I still get errors.

kanban show
head: illegal line count -- 0

pr: illegal option -- S
usage: pr [+page] [-col] [-adFfmprt] [-e[ch][gap]] [-h header]
          [-i[ch][gap]] [-l line] [-n[ch][width]] [-o offset]
          [-L locale] [-s[ch]] [-w width] [-] [file ...]

Any idea how to fix this?
Thank you!

@coderofsalvation
Copy link
Owner

coderofsalvation commented Oct 17, 2024

The latest version uses 'pr -s' (like mac's pr) instead of pr -S which seems to work fine too.
Can you test it?

Not sure about the head-error (yet), but I guess one step a time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants