HelloWorld/HelloWorld.bash

26 lines
450 B
Bash
Raw Normal View History

#!/usr/bin/bash
2018-11-05 15:35:32 -06:00
# File: HelloWorld.bash
2018-11-05 15:35:32 -06:00
#
# Description: This file exemplifies printing 'Hello world!' in bash.
#
# Package: AniNIX/HelloWorld
2018-11-05 15:35:32 -06:00
# Copyright: WTFPL
#
# 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>
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
main
2018-11-05 15:35:32 -06:00
fi