Le 04/01/2021 à 14:14, Greg Wooledge écrivait :
It should be noted that $(<foo) still forks a process.

var=$(<file) also trims out all trailing newlines including the one ending the last line because it exactly a sub-shell shot syntax for var=$(cat file). Sub-shell $(commands list) output is always trimmed.

--
Léa Gris


Reply via email to