LDP/LDP/guide/docbook/abs-guide/ex23.sh

17 lines
255 B
Bash
Raw Normal View History

2001-07-10 14:25:50 +00:00
#!/bin/bash
2003-11-03 16:25:16 +00:00
# Invoke this script both with and without arguments,
#+ and see what happens.
2001-07-10 14:25:50 +00:00
for a
do
2001-09-04 13:27:31 +00:00
echo -n "$a "
2001-07-10 14:25:50 +00:00
done
2002-04-01 16:04:17 +00:00
# The 'in list' missing, therefore the loop operates on '$@'
#+ (command-line argument list, including whitespace).
2001-09-04 13:27:31 +00:00
echo
2001-07-10 14:25:50 +00:00
exit 0