News for hackers. Stuff that matters.
Re:Colodebug: a simple way to improve Bash script debugging by gforce_de on Monday December 20, 2021 @04:55AM (#29622979)
what seems possible is:

  #!/bin/sh
  
  alias :=mydebug
  mydebug() { printf '%s\n' "$\*"; }
  
  foo=1
  : this is a debugable comment
  bar=2
Re:Colodebug: a simple way to improve Bash script debugging by c0l0 on Monday December 20, 2021 @05:07AM (#29623041)
Interesting find! Apparently, also in POSIX sh programming, all problems can be overcome by introducing another layer of indirection ;)

Would it be OK for you if I added that information/workaround to the article (crediting you, of course)?

Re:Colodebug: a simple way to improve Bash script debugging by gforce_de on Monday December 20, 2021 @06:10AM (#29623510)
no problem, just do it 8-)