Use parenthesis instead of backticks for command substitution.

This commit is contained in:
Svend Sorensen
2005-03-24 19:46:44 +00:00
parent 0e53f7ef35
commit 4434c9ee50

View File

@@ -72,8 +72,8 @@ vorbis()
(for field in $fields; do
value=""
for conv in `eval echo \\$$field`; do
value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file`
for conv in $(eval echo \\$$field); do
value=$(CUEPRINT -n $1 -t "$conv\n" $cue_file)
if [ -n "$value" ]; then
echo "$field=$value"
@@ -105,8 +105,8 @@ id3()
for field in $fields; do
value=""
for conv in `eval echo \\$$field`; do
value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file`
for conv in $(eval echo \\$$field); do
value=$(CUEPRINT -n $1 -t "$conv\n" $cue_file)
if [ -n "$value" ]; then
break
@@ -151,7 +151,7 @@ main()
cue_file=$1
shift
ntrack=`cueprint -d '%N' $cue_file`
ntrack=$(cueprint -d '%N' $cue_file)
trackno=1
if [ $# -ne $ntrack ]; then