Sha256: 666bfc930a24ce6d1593f85444c508737de008ceaae14b3def6a750b53345302

Contents?: true

Size: 235 Bytes

Versions: 5

Compression:

Stored size: 235 Bytes

Contents

#!/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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/example.sh
pygments.rb-0.6.3 vendor/pygments-main/tests/examplefiles/example.sh
pygments.rb-0.6.2 vendor/pygments-main/tests/examplefiles/example.sh
pygments.rb-0.6.1 vendor/pygments-main/tests/examplefiles/example.sh
pygments.rb-0.6.0 vendor/pygments-main/tests/examplefiles/example.sh