File test.sh,
228 bytes
(added by imre84, 13 months ago) |
|
Line | |
---|
1 | #!/bin/bash -eux |
---|
2 | |
---|
3 | function testfn() |
---|
4 | { |
---|
5 | local fn="${1}.txt" |
---|
6 | echo abc >"$fn" |
---|
7 | } |
---|
8 | |
---|
9 | cd /tmp |
---|
10 | x=$'\xf0\x9f\xa5\xb4' |
---|
11 | testfn "$x" |
---|
12 | x="$x$x" |
---|
13 | testfn "$x" |
---|
14 | x="$x$x" |
---|
15 | testfn "$x" |
---|
16 | x="$x$x" |
---|
17 | testfn "$x" |
---|
18 | x="$x$x" |
---|
19 | testfn "$x" |
---|
20 | x="$x$x" |
---|
21 | testfn "$x" |
---|
Download in other formats: