197
instead of
187
read a;echo $((2#$a))
Fri Oct 19 12:36:56 2018
bash

./code: line 2: ^c^b: command not found ./code: line 3: 1+: syntax error: operand expected (error token is "+")

read c
^c^b
echo $(($c+$b))
Fri Oct 19 12:36:06 2018
bash

./code: line 2: !!:s/c/b: No such file or directory ./code: line 3: +: syntax error: operand expected (error token is "+")

read c
!!:s/c/b
echo $(($a+$b))
Fri Oct 19 12:29:33 2018
bash
read a
read b
echo $(($a+$b))

197
instead of
187
read binary
echo $(( 2#${binary} ))

0
instead of
134
read binary
echo $(( 2#${a} ))

./code: line 2: 2# 10000110 : syntax error in expression (error token is "10000110 ")

read binary
echo $(( 2# ${binary} ))

0
instead of
134
read binary
echo $(( 2# ${a} ))

197
instead of
187
read a;echo $((2#$a))

197
instead of
187
read a;echo $((2#$a))

197
instead of
187
read a;echo $((2#${a}))

197
instead of
187
read a;echo $((2#$a))

197
instead of
187
#!/bin/bash -x 2>&1
read a
echo $((2#$a))

197
instead of
187
#!/bin/bash -x
read a
echo $((2#$a))

197
instead of
187
read a;echo $((2#$a))

197
instead of
187
read a
echo $(( 2#$a))

197
instead of
187
read a
echo $(( 2#$a ))

197
instead of
187
read a
echo $(( 2#$a ))


              
instead of
134
read a
echo ${2#a}
Thu Oct 18 12:30:45 2018
bash

1
instead of
3
declare -i a b
read a b
echo $(( $a+$b))