It's because usually commands have outputs ending in newlines.

Use `strip` to get rid of those.
    
    
    import strutils
    
    # ..
    
    let
      a = execProcess(cmd).strip()
      b = "some string"
    
    echo a, ": ", b # join is not needed here
    
    
    Run

Reply via email to