[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I need help with my touch pad.



On Thu, Aug 26, 2004 at 03:30:22PM -0400, Peter_TenEyck@FARMFAMILY.COM wrote:

> if [ -f /usr/bin/tpconfig ]; then
>   /usr/bin/tpconfig --tapmode=0
>   if [ $? ]; then
    ^^^^^^^^^^^^^^^
That doesn't do what you think it does. In Bash, the [ $? ] bit says "if the
variable requested is not empty, then......". You need to test for it
regardless, so something like:

[ "$?" = 0 ] && echo "worked" || echo "Failed"

Although how this is meant to fix your initial problem is unclear.

-- Thomas Adam

-- 
Quis custodiet ipsos custodes?



Reply to: