]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/arith.tests
Imported from ../bash-2.05.tar.gz.
[thirdparty/bash.git] / tests / arith.tests
index 913efbe05ac53f199611cf3890439a846171690a..fa56ad759aa0d88013d824d1455751c79818ff76 100644 (file)
@@ -267,3 +267,11 @@ echo $x $y
 # These are errors
 echo $((a b))
 ((a b))
+
+n=42
+printf "%d\n" $n
+printf "%i\n" $n
+echo $(( 8#$(printf "%o\n" $n) ))
+printf "%u\n" $n
+echo $(( 16#$(printf "%x\n" $n) ))
+echo $(( 16#$(printf "%X\n" $n) ))