I just installed KM as a trial on a Mac.
I can't for the life of me get this simple bash script to work.
#!/bin/bash
export LC_CTYPE=C; < /dev/urandom tr -dc '[:lower:][:digit:]' | head -c${1:-6}; echo
I created a macro to execute a shell script in a file with those contents and display the result in a window.
Usually the result is ... absolutely nothing. No window, no error, no feedback. Both the "Try" button and the keyboard shortcut.
Omitting the LC_CTYPE statement produces an error from tr, for which I get a notification.
In trying everything I can think of I have several times gotten a window with 1-2 characters of output, when there should have been 6.
Honestly it's quite infuriating. Any advice would be most appreciated.
(And yes, the script works fine from a terminal.)