I'm trying to run a bash script from inside my current one with the following command:
output=$(bash ./read.sh -f "$file" -c "$ARG1_COLUMN" -e "$ARG2_PATTERN")
read.sh is in the same dir as my current script and I've ensured that the flags and args are not null and have the values necessary.
when I try to echo "$output", I get a blank line
any ideas?
./read.sh
contain? What doesbash ./read.sh -f "$file" -c "$ARG1_COLUMN" -e "$ARG2_PATTERN"
print? – ilkkachu Oct 20 '23 at 21:49read.sh
instead of./
– Barmar Oct 20 '23 at 23:02