File: testing.sh

package info (click to toggle)
zshdb 0.05%2Bgit20101031-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,104 kB
  • ctags: 209
  • sloc: sh: 5,563; makefile: 337
file content (18 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# unsetopt ksharrays
typeset -a x
x=(10 20)
echo ${x[1]}
fooffdafsd
y='
abc def'
x=($y)  # get different results if unsetopt shwordsplit
( echo another line )
foo() {
  echo calling bar 10
  bar 10
}
bar() {
  x=20
}
foo arg1 $y
x=5