am not getting any result when am using 'if', without getting result for below script
when i am executing below script usisg if , not getting any result for below script.without 'if' getting result is 1 for below script.
if anybody know, plese post me ans. str1="GOOd boy" str2="Bad boy" if test "$str1" = "$str2" then echo $? fi |
The return code for the test is being sucked in by if so doing the echo of return code in your then is meaningless.
You'd have to do something like: Code:
str1="GOOd boy" |
|
|
All times are GMT -5. The time now is 05:39 PM. |