I'm trying to call a command from a variable in a script with a specific locale, example :
$ myYTDL="LANG=C.UTF-8 youtube-dl --get-filename"
but each time I try and call it in the script, I get :
$ $myYTDL $url
LANG=C.UTF-8: command not found
How can I do that ?
eval
builtin :myYTDL="eval LANG=C.UTF-8 youtube-dl"
Thanks bro :)
– SebMa Mar 12 '19 at 10:36