Live data from Hacker News

Spark

github.com

1–10 of 100 posts

Re: Spark

#3
The script is not a proper POSIX bourne shell script, as it uses arrays.

For starters, it won't work in dash (Debian and Ubuntu /bin/sh implementation). So the shebang line should be changed to #!/bin/bash (not sure if it would work in Zsh either).

Re: Spark

#5
post #3

The script is not a proper POSIX bourne shell script, as it uses arrays. For starters, it won't work in dash (Debian and Ubuntu /bin/sh implementation). So the shebang line should be changed to #!/bin/bash (not sure if it would work in Zsh either).

Fork and fix please!

Re: Spark

#7
I'm curious: is there a reason U+2584 LOWER HALF BLOCK is missing from the character set, which otherwise contains the progression from U+2581 to U+2587?

Edit: U+2588 seems like an obvious candidate as well.

Re: Spark

#8
Hmm, I get the following:

  [scotty@Scotty-Allens-MacBook-Air ~/bin]$ spark 1,2,3,4,5
  ▇\c
  ▇\c
  ▇\c
  ▇\c
  ▇\c
I suspect this has something to do with my terminal settings, but I'm not sure quite what...

Nifty idea, regardless.

Re: Spark

#9

Hmm, I get the following: [scotty@Scotty-Allens-MacBook-Air ~/bin]$ spark 1,2,3,4,5 ▇\c ▇\c ▇\c ▇\c ▇\c I suspect this has something to do with my terminal settings, but I'm not sure quite what... Nifty idea, regardless.

Try changing line 120 to

  echo -e $"$(print_tick $number)\c"
And it should work fine.

Re: Spark

#10

Hmm, I get the following: [scotty@Scotty-Allens-MacBook-Air ~/bin]$ spark 1,2,3,4,5 ▇\c ▇\c ▇\c ▇\c ▇\c I suspect this has something to do with my terminal settings, but I'm not sure quite what... Nifty idea, regardless.

add a '-e' after 'echo' on line 120
Post reply on HN