title: Bash 19 chars disappear with no reasons
body: <p>I trying to make a batch script to compress my audio files and I face a really weird issue.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>#!/bin/bash
  
  qscale=$1
  input=$2
  output=$3
  inputSize=$((${#input}+1))
  
  find "$input" -type f -name "*.flac" -print0 | while read -d $'\0' a
  do
      path=${a:inputSize}
      echo "Working on $path"
  #    ffmpeg -i "$a" -qscale:a $qscale "$output/${path[@]/%flac/mp3}" &amp;&gt;/dev/null
  done
  </code></pre>
  
  <p>Here is a result example :</p>
  
  <pre><code>Working on 09 - Groove #2 (instrumental studio outtake).flac
  Working on 07 - Blues for Allah Sand Castles and Glass Camels Unusual Occurrences in the Desert.flac
  Working on 12 - Proto 18 Proper (instrumental studio outtake).flac
  Working on 04 - The Music Never Stopped.flac
  Working on 13 - Hollywood Cantana (studio outtake).flac
  ...
  </code></pre>
  
  <p>If I uncomment the <code>ffmpeg</code> line, here is the result for the same folder :</p>
  
  <pre><code>Working on 09 - Groove #2 (instrumental studio outtake).flac
  Working on h Sand Castles and Glass Camels Unusual Occurrences in the Desert.flac
  Working on 12 - Proto 18 Proper (instrumental studio outtake).flac
  Working on r Stopped.flac
  Working on 13 - Hollywood Cantana (studio outtake).flac
  ...
  </code></pre>
  
  <p>One file on two misses its 19th first chars ! And I've no idea why.</p>