| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # Listing the planets. |
| 3 | |
| 4 | for planet in Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto |
| 5 | do |
| 6 | echoscip-shell system . . echo. $planet # Each planet on a separate line. |
| 7 | done |
| 8 | |
| 9 | echoscip-shell system . . echo.; echoscip-shell system . . echo. |
| 10 | |
| 11 | for planet in "Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto" |
| 12 | # All planets on same line. |
| 13 | # Entire 'list' enclosed in quotes creates a single variable. |
| 14 | # Why? Whitespace incorporated into the variable. |
| 15 | do |
| 16 | echoscip-shell system . . echo. $planet |
| 17 | done |
| 18 | |
| 19 | echoscip-shell system . . echo.; echoscip-shell system . . echo. "Whoops! Pluto is no longer a planet!" |
| 20 | |
| 21 | exit 0 |