Skip to content

Commit 1706605

Browse files
committed
Return code function updated
1 parent 1fef335 commit 1706605

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Shell Scripting Tutorial/Functions/src/return_code.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ echo "Enter two numbers"
88
read num1
99
read num2
1010
function1 $num1 $num2
11-
echo "Multiplied value is $?"
11+
mul=$?
12+
echo "Multiplied value is $mul"

0 commit comments

Comments
 (0)