I have a shell script that executes a jar file and stores the output generated by executing the jar file to a variable. 

E.g: 

```
myvariable=$(java -jar MyJavaJarFile.jar)

```

However the output when I execute the java statement given below consists of special characters such as /, \, +, =, etc. But when it is stored to the variable characters such as \ is omitted from the variable. 

```
java -jar MyJavaJarFile.jar

```

If the actual output is `abc=\=abc`, then the variable stores only `abc==abc`.

Could someone help me out with this? 
Thanks.. :)