title: Zsh is saying I have an unmatched ' in my shell script. Where is it?
body: <p>I'm getting an error on line 7 that I have an unmatched ' in my zsh shell script, but I don't see it. What am I missing?</p>
  <pre><code>#!/bin/zsh
  
  for f in csvs/*.csv
  do
      mytable=$(basename &quot;$f&quot; .csv)
      mysql -e &quot;load data local infile '&quot;$f&quot;' into table '&quot;$mytable&quot;' fields TERMINATED BY ',' ENCLOSED BY '&quot;' LINES TERMINATED BY '\n' ignore 1 rows&quot;  -u root --password=password --local-infile
  done
  </code></pre>