I have this command that works in ZSH but not in bash. The command is an AFNI command and is as follows:
3dTcat \
-prefix Temp.nii \
Zero_dataset.nii \
$directory_rois/{{$array1}.nii,{$array2}.nii,{$array3}.nii}
where each array is a unique and non-overlapped interval of numbers between 1-1000 (an example being: array1=173..233)
Basically this script is combining all the .nii files together that have file names equivalent to a number within the arrays.
I've tried to change it to a bash acceptable format in the following way:
3dTcat \
-prefix Temp.nii \
Zero_dataset.nii \
$directory_rois/{"$array1".nii,"$array2".nii,"$array3".nii}
but this just leads to "FATAL ERROR: Can't open dataset $directory_rois/1..81.nii
This makes sense to me since 1..81.nii is not a file, rather it is 1.nii; 2.nii; 3.nii, (...) 1000.nii that are real files.
Is there any advice that you can provide?