ttyplot icon indicating copy to clipboard operation
ttyplot copied to clipboard

-e arg isn't working in Homebrew version (but works fine when compiled from source)

Open luckman212 opened this issue 5 years ago • 1 comments

Hey, first: amazing work on this tool! I'm using it to visualize memory pressure over time on my Mac.

v1.4 from Homebrew seems to have a problem with the -e option -- e.g. this will fail (just prints the helptext and then pauses for 1 second, then exits):

while [0]; do memory_pressure | awk 'END {print $5/1}'; sleep 1; done | ttyplot -e+ -cx -m100 -t%free_mem -u%

but, cloning master and compiling with make outputs a version where the exact same command works fine (also says 1.4 but obviously something's different).

macOS 10.15.5

Any idea?

luckman212 avatar Jun 14 '20 19:06 luckman212

very interesting, let me investigate

tenox7 avatar Jun 16 '20 09:06 tenox7

Turns out that:

  • I can reproduce the problem for Git tag 1.4 locally
  • The problem is that the optstring passed to getopt is missing e
  • The problem has been fixed by commit d6a5ec90c742c4765ca16eed814fa61dadb68cd5 already
  • The first release including the fix is 1.5(.0)
  • Issue #40 already reported the same problem but was already closed as fixed (but not released) when issue #49 here was opened

I'll close as fixed, please re-open as needed.

hartwork avatar Nov 30 '23 23:11 hartwork