shell 'case' statement don't need 'break'
the syntax of 'case' is: `case word in [[(] pattern [| pattern] ...) list ;; ] ... esac` `list` don't have to issue `break`. `break` is normally used to exit a `for`, `until` or `while` loop.
This commit is contained in:
parent
47621db62c
commit
d553ed66c7
1 changed files with 0 additions and 3 deletions
|
|
@ -21,19 +21,16 @@ case $OS in
|
|||
("Linux"|"FreeBSD"|"DragonFly")
|
||||
BIN_SUF=
|
||||
LIB_SUF=.so
|
||||
break
|
||||
;;
|
||||
("Darwin")
|
||||
BIN_SUF=
|
||||
LIB_SUF=.dylib
|
||||
break
|
||||
;;
|
||||
(*)
|
||||
BIN_SUF=.exe
|
||||
LIB_SUF=.dll
|
||||
LIB_DIR=bin
|
||||
LIB_PREFIX=
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue