Nosey Nick VA3NNW
David Cameron - IRLP wrote:
I have made a new update to wavplay to cover the "old" style embeddedYou don't technically care about the *OS Version* though, do you? You
care about the *SOX version*, so perhaps you would prefer to do
something safer like...
SOXVER=$(sox --version) # ...
case "$SOXVER" in
*v12.*) sox --how-old-do-you-need-to-go? ;;
*v13.*) sox --some-old-behaviour-here ;;
*v14.*) sox --some-newer-behaviour-here ;;
*c15.*) sox --do-you-wanna-guess-at-future-behaviour-too? ;;
*) echo "Don't know what to do with $VER" ; exit 9 ;;
Yes, BASH has case statements! ... or do you need to support REALLY
REALLY old versions of BASH too? :-O
"Nosey" Nick Waterman, VA3NNW/G7RZQ, K2 #5209.
use Std::Disclaimer; sig@...
If you can stay in love for more than two years, you're on something.