2 votes
Accepted

How to convert code from test format to if fi format?

I think the most direct way to convert your code is: if ! test "$IN_TERM"; then export IN_TERM=1 konsole -e "$0" exit 0 fi You can then rewrite it as if ! [[ "$...
user2233709's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible