summaryrefslogtreecommitdiffstats
path: root/tests/dollar-at6.sub
blob: 039e11f89b9a328385a18780cf756c54d4c7d16e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
set -- ''; 

recho "${@}" x
recho "${@:1}" x

set -- "${@:1}"
echo "$#" 

set  -- '' ''

recho "${@:1}" x 
recho "${@:1:1}" x 

typeset -a A	# ksh93 needs this
A=('' '')
recho "${A[@]:0}" x 

recho "${A[@]:0:1}" x

recho "${A[@]:1}" x 

set -- ''

recho "${@/foo/bar}"
recho "${@^^[abcde]}"

A=( '' )

recho "${A[@]/foo/bar}"
recho "${A[@],,[abcde]}"