Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Same, but using only Bourne shell' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Same, but using only Bourne shell
Authored by: de291 on Sep 07, '05 01:17:00PM

Is the "fi" at the end of the script correct?



[ Reply to This | # ]
Same, but using only Bourne shell
Authored by: alblue on Sep 07, '05 04:55:32PM

Yes, fi is correct. Bash terminates the 'if' blocks with 'if' in reverse, so 'fi'. The same is true for 'case' statements that end 'esac'.

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/bash.1.html



[ Reply to This | # ]
Same, but using only Bourne shell
Authored by: de291 on Sep 07, '05 08:33:56PM

Thanks
Too many scripting languages in my head.



[ Reply to This | # ]