Tiny Core Linux
Off-Topic => Off-Topic - Tiny Core Lounge => Topic started by: manit123 on September 16, 2012, 10:56:38 AM
-
tc@box:/mnt/sdc1/startup$ df | grep -i ossxmix ; echo $? ; if [ $? == '1'] then echo ossxmix not found else ossxmix found fi
>
> /
> '
> ?
>
>
>
>
>
>
>
> ;
> $
> ?
> "
> "
> ''
> '
>
>
>
>
> \
> //
> \n
> '
>
> /
> end
> endif
> exit
> quit
>
This is annoying . ctrl+c did not help .
-
Hi manit123
Yes, that can be annoying. Try Ctrl-D
-
ctrL+d helps .
Reason was
> sh: syntax error: unexpected end of file (expecting "then")
-
You have several errors in that line.
1. You are testing the return code of echo, not grep.
2. You are missing a ';' before then, else, and fi.