Quote:
Originally Posted by twobob
PHP Code:
SETPROP=/usr/bin/lipc-set-prop
# Whitespace == :Space:Tab:Line Feed:Carriage Return: readonly WSP_IFS=`printf "\x20\x09\x0A\x0D"` # No Whitespace == :Line Feed:Carriage Return: readonly NO_WSP=`printf "\x0A\x0D"` # Whitespace == :Space:Tab: readonly WSP=`printf "\x20\x09"`
IFS=${NO_WSP}
# Now however you write a read command block: read C case $C in 'HOME' ) IFS=${WSP_IFS} ; "$SETPROP com.lab126.appmgrd start app://com.lab126.booklet.home" ;; 'SCREEN SAVER' ) IFS=${WSP_IFS} ; "$SETPROP com.lab126.appmgrd start app://com.lab126.booklet.settings?diagnosticMode=\;411" ;; * ) : # no-op ; esac
I have no idea why that doesn't work.
I'll sleep on it.
Happily will take advice...
It DOES match the case... then nothing happens?
Sigh
|
Re-enable whitespace word splitting after the case match.
See mark-up above (quote has been changed).