home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!bonnie.concordia.ca!daily-planet.concordia.ca!alcor.Concordia.CA!gsa
- From: gsa@alcor.concordia.ca ( CON U GRADUATE STUDENTS' ASSOC )
- Newsgroups: comp.unix.shell
- Subject: Calling a function from a case loop.
- Message-ID: <4785@daily-planet.concordia.ca>
- Date: 23 Aug 92 16:46:22 GMT
- Sender: usenet@daily-planet.concordia.ca
- Distribution: comp.unix.shell
- Organization: Concordia University, Montreal, Quebec
- Lines: 20
-
- Has anyhone tried calling a function from a case condition?
- This one doesn't seem to work:
-
- read selection
- case $selection in
-
- 1)
- call_some_funtion() ;;
-
- esac
- done
- exit 0
-
- call_some_funtion()
- {
- echo "Hello World"
- }
-
- -----
- Dan.
-