#!/bin/bash
documents=("/datalog/AB errors.txt");
/usr/bin/bash /home/user/download.sh "${documents[*]}"
the download.sh SCPs into a server and downloads documents
but in the case above there is a space in the file name which leads it to seek /datalog/AB
instead of AB errors.txt
file.
I thought surrounding in double quotes fixes the space in filename issue. I also tried AB\ errors.txt
but that caused the entire bash script to not run.