1 | [victor@server ~/test5]$ ./test2.sh
|
---|
2 | # for devdir in /etc/udev/devices /lib/udev/devices; do
|
---|
3 | for devdir in dir; do
|
---|
4 | [ -d "$devdir" ] || continue
|
---|
5 | echo $devdir
|
---|
6 | pushd /
|
---|
7 | pushd $devdir
|
---|
8 | set *
|
---|
9 | if [ "$1" != "*" ]; then
|
---|
10 | echo boucle if $1
|
---|
11 | echo $@
|
---|
12 | fi
|
---|
13 | done
|
---|
14 | + for devdir in dir
|
---|
15 | + '[' -d dir ']'
|
---|
16 | + echo dir
|
---|
17 | dir
|
---|
18 | + pushd /
|
---|
19 | / ~/test5
|
---|
20 | + pushd dir
|
---|
21 | ./test2.sh: line 8: pushd: dir: No such file or directory
|
---|
22 | + set audit bin boot dev dir1 etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test2.sh test4popd.sh testhrea.410 tftpboot tmp usr var
|
---|
23 | + '[' audit '!=' '*' ']'
|
---|
24 | + echo boucle if audit
|
---|
25 | boucle if audit
|
---|
26 | + echo audit bin boot dev dir1 etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test2.sh test4popd.sh testhrea.410 tftpboot tmp usr var
|
---|
27 | audit bin boot dev dir1 etc home initrd lib lost+found media misc mnt opt proc root sbin selinux srv sys test2.sh test4popd.sh testhrea.410 tftpboot tmp usr var
|
---|
28 | echo exit
|
---|
29 | + echo exit
|
---|
30 | exit
|
---|