summaryrefslogtreecommitdiff
path: root/yaksh/docs/sample.sh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/docs/sample.sh')
-rwxr-xr-xyaksh/docs/sample.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/docs/sample.sh b/yaksh/docs/sample.sh
new file mode 100755
index 0000000..e935cb3
--- /dev/null
+++ b/yaksh/docs/sample.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+[[ $# -eq 2 ]] && echo $(( $1 + $2 )) && exit $(( $1 + $2 ))