summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.sh
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-04-22 10:17:48 +0200
committerGeorg Brandl <georg@python.org>2014-04-22 10:17:48 +0200
commit67b6e64d9cfabdd6f08772428b836af6f053369f (patch)
tree02933a19f3f94ca895a2c8c397b0ee522a1e89b0 /tests/examplefiles/example.sh
parent11e213203b7153d0a947bb5221cce0185fea219d (diff)
parentff18c358cca16f8891cf9897753c156782ce5462 (diff)
downloadpygments-67b6e64d9cfabdd6f08772428b836af6f053369f.tar.gz
Merged in jaingaurav2/pygments-main (pull request #321)
If encoding fails use ? as ANSI fallback character
Diffstat (limited to 'tests/examplefiles/example.sh')
-rw-r--r--tests/examplefiles/example.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/examplefiles/example.sh b/tests/examplefiles/example.sh
new file mode 100644
index 00000000..2112cdd1
--- /dev/null
+++ b/tests/examplefiles/example.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+printf "%d %s\n" 10 "foo"
+printf "%d %s\n" $((10#1)) "bar"
+
+let "m = 10#${1:1:2}"
+echo $m
+
+m=$((10#${1:4:3} + 10#${1:1:3}))
+echo $m
+
+m=$((10#${1:4:3}))
+echo $m
+
+m=$((10#$1))
+echo $m
+
+m=$((10#1))
+echo $m
+
+m=$((10))
+echo $m