diff options
Diffstat (limited to 't/t4018')
-rw-r--r-- | t/t4018/sh-function | 4 | ||||
-rw-r--r-- | t/t4018/sh-function-comment | 6 | ||||
-rw-r--r-- | t/t4018/sh-function-nested | 7 | ||||
-rw-r--r-- | t/t4018/sh-function-prefix | 4 | ||||
-rw-r--r-- | t/t4018/sh-function-string | 4 |
5 files changed, 25 insertions, 0 deletions
diff --git a/t/t4018/sh-function b/t/t4018/sh-function new file mode 100644 index 0000000000..1d5096a0ac --- /dev/null +++ b/t/t4018/sh-function @@ -0,0 +1,4 @@ +RIGHT_foo() +{ + ChangeMe; +} diff --git a/t/t4018/sh-function-comment b/t/t4018/sh-function-comment new file mode 100644 index 0000000000..f340ee79e4 --- /dev/null +++ b/t/t4018/sh-function-comment @@ -0,0 +1,6 @@ + RIGHT_foo() # echo 'foo' +#bar() +{ + #bar() + ChangeMe; +} diff --git a/t/t4018/sh-function-nested b/t/t4018/sh-function-nested new file mode 100644 index 0000000000..d3263f3ade --- /dev/null +++ b/t/t4018/sh-function-nested @@ -0,0 +1,7 @@ +foo ( ) +{ + RIGHT_bar() + { + echo ChangeMe + } +} diff --git a/t/t4018/sh-function-prefix b/t/t4018/sh-function-prefix new file mode 100644 index 0000000000..e96eb7aa58 --- /dev/null +++ b/t/t4018/sh-function-prefix @@ -0,0 +1,4 @@ +function RIGHT_foo() +{ + ChangeMe; +} diff --git a/t/t4018/sh-function-string b/t/t4018/sh-function-string new file mode 100644 index 0000000000..f60a899bc3 --- /dev/null +++ b/t/t4018/sh-function-string @@ -0,0 +1,4 @@ +RIGHT_foo() { + echo "bar()" + ChangeMe; +} |