working with lf x0A in bash terminal
From man bash:


  Command Substitution
  
  [...]
  
  Bash performs the expansion by executing command and replacing the command substitution with the standard output of the command, with any trailing newlines deleted.