word2018 FILE_2018 > FILE_2018.out &
this works OK for me in bin/bash, terminal, konsole, BASH
I have an text-file script in #!/bin/bash, where I run this variable CMD and it works in CSH, but not in BASH.
CMD="word${year} ${FILE_version.txt} > ${FILE_version.out} &"
word2018 - system alias defined/sourced from other location
word - static name
2018 - variable (can be any number 2015, 2022,....)
FILE_version - variable (can be - FILE_2015, FILE_2022,...)
csh -c "$CMD" ...works OK
bash -c "$CMD" ...NOT working, command word2018 not found
any advice, help? I would appreciate very well
alias_name = testtries to runalias_namewith=andtestetc. as arguments, probably not what you want.