View Single Post
Old 07-01-2012, 08:35 AM   #35
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
I'm still working on the rename script to make it "universal"....

I'm using this command:

Code:
image="hello"
echo "$image" | grep -q "h"
Then, checking $? I should find:
Code:
0 One or more matches found.
1 No match found.
2 Syntax error or inaccessible file
But I get ALWAYS a 0 (even if searching "x" in "hello")!!!

It works on cygwin, but not in Kindle...
$? contains the exit status in busybox?
silver18 is offline   Reply With Quote