Closed marimlem closed 1 month ago
bash:$ export var2="s -la gfdgsd" bash:$ l$var2 ls: cannot access 'gfdgsd': No such file or directory
====
bash:$ export var3="s -la | wc" bash:$ l$var3 ls: cannot access '|': No such file or directory ls: cannot access 'wc': No such file or directory
=== -> is splitted at spaces, but all "words" are taken as args for ls
bash:$ export var4="s -la $USER" bash:$ l$var4 ls: cannot access 'lknobloc': No such file or directory
===
:( expansion in expansion
export a="s -la" l$a
should work!