File: skip.sh

package info (click to toggle)
bashdb 3.1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,252 kB
  • ctags: 117
  • sloc: sh: 4,880; pascal: 3,186; lisp: 484; makefile: 315; ansic: 294
file content (41 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36
37
38
39
40
41
#!../../bash
# Note: no CVS Id line since it would mess up regression testing.
# This code is used for various debugger testing.

fn1() {
    echo "fn1 here"
    x=5
    fn3
}    

fn2() {
    name="fn2"
    echo "$name here"
    x=6
}    

fn3() {
    name="fn3"
    x=$1
}    

x=22
x=23
for i in 1 ; do
  ((x += i))
done
x=27
echo $(fn3 30)
fn3 29
fn1;
fn3 31
case x in 
 * ) x = 33
esac
[[ -z "x" ]] && x=35
((x += 1))
source dbg-test1.sub
exit 0;
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; End: ***