2016-08-04 12:13:12 -05:00
|
|
|
#!/usr/bin/bash
|
2018-11-05 15:35:32 -06:00
|
|
|
|
2019-04-15 16:21:46 -05:00
|
|
|
# File: HelloWorld.bash
|
2018-11-05 15:35:32 -06:00
|
|
|
#
|
|
|
|
# Description: This file exemplifies printing 'Hello world!' in bash.
|
|
|
|
#
|
2021-12-01 13:12:27 -06:00
|
|
|
# Package: AniNIX/HelloWorld
|
2018-11-05 15:35:32 -06:00
|
|
|
# Copyright: WTFPL
|
|
|
|
#
|
2021-12-01 13:12:27 -06:00
|
|
|
# Author: DarkFeather <ircs://aninix.net:6697/DarkFeather>
|
2018-11-05 15:35:32 -06:00
|
|
|
|
2019-04-15 15:58:35 -05:00
|
|
|
### String to print
|
|
|
|
export _helloWorld="Hello world!"
|
|
|
|
|
|
|
|
|
2018-11-05 15:35:32 -06:00
|
|
|
### Prints 'Hello world!'
|
|
|
|
### </summary>
|
2019-04-15 14:53:57 -05:00
|
|
|
function main() {
|
2019-04-15 15:58:35 -05:00
|
|
|
printf "$_helloWorld""\n"
|
2018-11-05 15:35:32 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
## MAIN
|
2019-04-15 15:58:35 -05:00
|
|
|
if [ `basename "$0"` == "HelloWorld.bash" ]; then
|
2019-04-15 14:53:57 -05:00
|
|
|
main
|
2018-11-05 15:35:32 -06:00
|
|
|
fi
|