1996-08-26 18:22:31 +00:00
|
|
|
3 4
|
|
|
|
5 6 7 8 9
|
|
|
|
7 8 9
|
|
|
|
/usr/chet
|
|
|
|
/usr/chet
|
|
|
|
/usr/chet
|
|
|
|
/a/b/c
|
|
|
|
/usr/chet
|
|
|
|
/usr/chet 7
|
|
|
|
/a/b/c 9 /a/b/c
|
|
|
|
/a/b/c 9 /a/b/c
|
|
|
|
/a/b/c /a/b/c
|
|
|
|
1 2
|
|
|
|
1 1
|
1996-12-23 17:02:34 +00:00
|
|
|
unset
|
1997-06-05 14:59:13 +00:00
|
|
|
toronto airport
|
|
|
|
AVAR
|
|
|
|
song by rush
|
|
|
|
BVAR
|
|
|
|
toronto airport
|
|
|
|
AVAR
|
|
|
|
AVAR
|
|
|
|
42
|
|
|
|
/bin:/usr/bin:/usr/local/bin:.
|
|
|
|
avar=([0]="/bin:/usr/bin:/usr/local/bin:.")
|
|
|
|
z=yy
|
|
|
|
42
|
|
|
|
declare -i ivar="10"
|
|
|
|
unset
|
|
|
|
declare -x ivar="42"
|
|
|
|
hB
|
2001-04-06 19:14:31 +00:00
|
|
|
braceexpand:hashall:interactive-comments
|
2004-07-27 13:29:18 +00:00
|
|
|
hBP
|
2002-07-17 14:10:11 +00:00
|
|
|
braceexpand:hashall:interactive-comments:physical
|
|
|
|
declare -r SHELLOPTS="braceexpand:hashall:interactive-comments:physical"
|
2000-03-17 21:46:59 +00:00
|
|
|
abcde
|
2001-04-06 19:14:31 +00:00
|
|
|
20
|
|
|
|
30
|
|
|
|
40
|
|
|
|
50
|
2002-07-17 14:10:11 +00:00
|
|
|
|0|10|
|
|
|
|
10
|
|
|
|
|0|10|
|
|
|
|
10
|
|
|
|
|0|10|
|
|
|
|
10
|
|
|
|
|4|
|
|
|
|
4
|
|
|
|
|0|11|
|
|
|
|
after fff3: x=4
|
|
|
|
|0|12|
|
|
|
|
|y|
|
|
|
|
|y|
|
2014-02-26 09:36:43 -05:00
|
|
|
a:b:c:d
|
|
|
|
a-b-c-d
|
|
|
|
a:b:c:d
|
|
|
|
g: ,
|
|
|
|
f: ,
|
|
|
|
FIN: asdf fdsa, asdf fdsa
|
|
|
|
g: v = , w =
|
|
|
|
f: v = , w =
|
|
|
|
FIN: v = two, w = one
|
2016-09-15 16:59:08 -04:00
|
|
|
./varenv4.sub: line 54: bbb: unique: cannot convert indexed to associative array
|
|
|
|
after bbb: 1
|
|
|
|
declare -Ar FOOBAR=([foo]="bar" )
|
|
|
|
declare -Ar FOOBAR=([foo]="bar" )
|
|
|
|
declare -ar FOOBAR2=([0]="bar")
|
|
|
|
declare -ar FOOBAR2=([0]="bar")
|
2014-02-26 09:36:43 -05:00
|
|
|
F OUTSIDE
|
|
|
|
F OUTSIDE
|
2016-09-15 16:59:08 -04:00
|
|
|
declare -ar outside=()
|
|
|
|
declare -ir outside1="1"
|
|
|
|
tempenv = foo
|
|
|
|
0
|
|
|
|
declare -ar myvar=([0]="0")
|
|
|
|
1
|
|
|
|
declare -ir myvar="1"
|
|
|
|
declare -rx tempvar1='foo'
|
|
|
|
declare -rx tempvar2='qux'
|
|
|
|
./varenv7.sub: line 44: local: var: readonly variable
|
|
|
|
inside: outside
|
|
|
|
outside: outside
|
|
|
|
local: unset1 unset2
|
|
|
|
abc
|
|
|
|
abc
|
|
|
|
:1
|
|
|
|
:2
|
|
|
|
after: ----
|
|
|
|
global:1
|
|
|
|
global:2
|
|
|
|
after: --global--
|
|
|
|
after: ----
|
|
|
|
x = :1:2
|
2005-12-07 14:08:12 +00:00
|
|
|
a=z
|
|
|
|
a=b
|
|
|
|
a=z
|