![]() |
2010-05-05
, 18:13
|
Posts: 48 |
Thanked: 7 times |
Joined on Apr 2010
|
#221
|
![]() |
2010-05-05
, 18:17
|
|
Posts: 286 |
Thanked: 219 times |
Joined on Feb 2010
@ France
|
#222
|
![]() |
2010-05-05
, 18:19
|
Posts: 28 |
Thanked: 8 times |
Joined on Feb 2010
@ Portugal
|
#223
|
AhahWell Busybox uses the ash shell, so it may be the problem. Easy to know :
Try to run :
Is the OK displayed ?Code:[[ -n 12 -a 12 -ne 42 ]] && echo 'OK'
![]() |
2010-05-05
, 18:31
|
|
Posts: 286 |
Thanked: 219 times |
Joined on Feb 2010
@ France
|
#224
|
Nope.. think it has to do with how you group those arguments. With bash you have to explicitly say if it's an and/or condition stringing those up (with grouping for futher clarity preferred). Also, it's highly likely the operators don't necessarily equate to ash's.
On bash:
-a file
True if file exists.
-n string
True if the length of string is non-zero.
arg1 OP arg2
OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These arithmetic binary operators return true if arg1 is equal to, not equal to, less than, less than or equal to, greater than, or greater than or equal to arg2, respectively. Arg1 and arg2 may be positive or negative integers.
Anyway, I guess I could sidestep all of these and just change the headers on your scripts to use the shell you intended them for.. Busybox, right?
![]() |
2010-05-05
, 18:36
|
Posts: 28 |
Thanked: 8 times |
Joined on Feb 2010
@ Portugal
|
#225
|
![]() |
2010-05-05
, 18:38
|
Posts: 28 |
Thanked: 8 times |
Joined on Feb 2010
@ Portugal
|
#226
|
![]() |
2010-05-05
, 18:50
|
|
Posts: 286 |
Thanked: 219 times |
Joined on Feb 2010
@ France
|
#227
|
Will do and let you know.. By the way, sad to see the old description go, mate.. It was so much more enlightening -- it was an actual description, just by reading it you'd know how the app worked.
Meh, but who reads these things anyway, eh?
The Following User Says Thank You to calvin_42 For This Useful Post: | ||
![]() |
2010-05-05
, 19:15
|
Posts: 28 |
Thanked: 8 times |
Joined on Feb 2010
@ Portugal
|
#228
|
The Following User Says Thank You to kerneld For This Useful Post: | ||
![]() |
2010-05-06
, 09:11
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#229
|
![]() |
2010-05-06
, 11:02
|
|
Posts: 286 |
Thanked: 219 times |
Joined on Feb 2010
@ France
|
#230
|
Sadly it doesn't show up as an update in App Manager (and apt-get upgrade) either.