Heyas
As there was a splitting issue with TUI 0.6.6-x focused around tui-status since the 'solaris' (not really but for that purpose) update, the urge was given to do this first.
Well, the splitting 'bug' should be fixed, i hope.
But i've found a new one.
When i start the very same script in two diffrent ways, it one time works, the other time it dont.
One script is called by the WM named 'Awesome':
LUA (rc.lua):
...
terminal = "lxterminal"
term_cmd = terminal .. " -e "
...
{ "BG: NASA iotd", term_cmd .. awful.util.getdir("config") .. "/scripts/nasaBackground-new2.sh", },
And the other time i call it like:
./scripts/nasaBackground-new2.sh
So basicly, i call it two times the same way.
Right?
During this test phase, i check if the first argument is numeric, by this (bash):
check=$(echo "$1" | tr -d [:digit:])
if [[ -z "$check" ]] && [[ ! -z "$1" ]] # && echo $1 | grep -q [0-9]
then echo "all numbers:: $1" > /dev/zero
else echo "First argument $1 ($check) is not numeric!"
exit 1
fi
But see this (wide!):
https://sea.fedorapeople.org/review/tui/screenshots/1-app-2-behaviours\_4_small.jpg
I also checked wether there was a leading or tailing space, by changing to ~ "first argument .$1. is not numeric", there is not.
While writing the post, i've added the ($check) is not numeric
, and reran the script, for some reason i dont understand or see in the code, it seems than when the script is started by 'lua' - the interface, the values are bogus: "$check" = "$1"
Any idea why?
- or how i could fix this please?
Thank you in advance.