commit 4fec0c44e6cb91ec27e36bdeb2a53129a032f5ac from: Omar Polo date: Tue Oct 24 09:08:12 2023 UTC myterm: pass extra arguments to xterm commit - 8e69d76d264b2d8de6ba9bd81ddcf4dc8e78be82 commit + 4fec0c44e6cb91ec27e36bdeb2a53129a032f5ac blob - 19820b846bd276674dc4fe7d4186e3080596f549 blob + d208ae4fc5fde7ba1ef0169a7d485f0e6f611b1a --- bin/myterm.lp +++ bin/myterm.lp @@ -15,4 +15,4 @@ I'm actually using the same list of the sam example co ksh has not a great syntax for arrays, but this will choose (with modulo bias!) a random colour and use it as xterm background. - exec xterm -bg "$(echo ${colours[$((RANDOM % ${#colours[@]}))]})" + exec xterm -bg "$(echo ${colours[$((RANDOM % ${#colours[@]}))]})" "$@"