ftrvxmtrx / split2flac

Split flac/ape/wv/wav + cue sheet into separate tracks
253 stars 34 forks source link

Make split2flac dash compatible #8

Closed marcecj closed 11 years ago

marcecj commented 11 years ago

Split2flac is incompatible with the dash (a POSIX compliant /bin/sh implementation) due to the use of the &> output redirection operator in conjunction with the which commands. In order to fix this, the &> operator has been replaced by >, and (in order to avoid the outputs to stderr) which has been replaced by command -v.

Note that this could alternatively be solved by replacing the use of &>/dev/null with >/dev/null 2>&1, but I didn't like that as much.