I am trying to create a shell script that reads a file with parameters for a python script the shell script is supposed to execute in a loop:
#!/bin/bash
while read -r i ; do python catfisher.py $i ; done < fishes
where 'fishes' might contain:
vesper "purplish green" fender
vespa "dimmer grey" "stradivarius veil"
The problem is that the python script's argparser interprets the parameters like so:
python purplish green fender
even when echoing $1 in the bash script outputs:
vesper "purplish green" fender
The python script is fine if run manually:
python catfisher.py "purplish green" fender
so I'm assuming it's my lacking bash script skills that are the culprit, rather than my lacking argparser skills but pray advice if I'm mistaken.