kanban.bash icon indicating copy to clipboard operation
kanban.bash copied to clipboard

MacOS 11.6.1

Open mikkeo opened this issue 4 years ago • 6 comments

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

mikkeo avatar Dec 02 '21 20:12 mikkeo

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

fritx avatar Aug 23 '22 10:08 fritx

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

tudormunteanu avatar Sep 23 '22 08:09 tudormunteanu

@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: https://github.com/sclorg/s2i-python-container/issues/104, https://github.com/matrix-org/complement/commit/b89638216a2a21b922667ad6977f21e4a04ce663, https://github.com/matrix-org/complement/pull/73

image

fritx avatar Sep 23 '22 09:09 fritx

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

fritx avatar Sep 23 '22 14:09 fritx

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!

StrikingLoo avatar Mar 13 '23 08:03 StrikingLoo