-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_declare.sh
executable file
·39 lines (33 loc) · 992 Bytes
/
test_declare.sh
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
#!/bin/bash -
#===============================================================================
#
# FILE: test_declare.sh
#
# USAGE: ./test_declare.sh
#
# DESCRIPTION: essai de déclare apres une fonction. devrait lister la fonction. c'est à dire?
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Dr. Fritz Mehner (fgm), [email protected]
# COMPANY: FH Südwestfalen, Iserlohn
# CREATED: 16/11/2011 05:41:05 CET
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
function unefonc(){
echo "entree dans $FUNCTION"
}
function uneautrefonc(){
echo "entree dans $FUNCTION"
}
declare -F
# provoque affichage de
# declare -f unefonc
# declare -f uneautrefonc
# declare
# provoque affichage de
# function unefonc(){ echo "entree dans $FUNCTION" }
# et de l'autre