Skip to content
  • Jon DeVree's avatar
    Force final newline in xmlstarlet · df510742
    Jon DeVree authored and Dimitri Papadopoulos Orfanos's avatar Dimitri Papadopoulos Orfanos committed
    
    
    By default xmlstarlet does not include a final newline on the output.
    Because POSIX says that all lines must end in a newline, this causes the
    final line of output to be skipped by the 'while read ...' loop in bash.
    Adding a '-n' after the '-v ...' causes xmlstarlet to include a final
    newline at the end of its output.
    
    Signed-off-by: default avatarJon DeVree <nuxi@vault24.org>
    df510742