Browse Source

Clarify control ordering -- definitions, then execution

Alois Mahdal 3 years ago
parent
commit
7a45a42c53
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      99bottles.sh

+ 6
- 6
99bottles.sh View File

@@ -16,12 +16,6 @@
16 16
 #   [99b]: http://99-bottles-of-beer.net/language-bash-1831.html
17 17
 #
18 18
 
19
-standardBreakLine="Take one down and pass it around"
20
-wastefulBreakLine="If one of those bottles should happen to fall"
21
-breakLine=$([ "$1" = --careless ] \
22
- && echo $wastefulBreakLine \
23
- || echo $standardBreakLine)
24
-
25 19
 pred() {
26 20
     #
27 21
     # Get predecessor to a number $1
@@ -202,6 +196,12 @@ syllables() {
202 196
 }
203 197
 
204 198
 
199
+standardBreakLine="Take one down and pass it around"
200
+wastefulBreakLine="If one of those bottles should happen to fall"
201
+breakLine=$([ "$1" = --careless ] \
202
+ && echo $wastefulBreakLine \
203
+ || echo $standardBreakLine)
204
+
205 205
 nb=ninety-nine
206 206
 
207 207
 while [ -n "$nb" ]; do