Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49918

Carriage return "\r" treated as newline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.89.2 and also Jenkins 2.109

      Executing the following on a shell or bash terminal in Ubuntu 14.04 or 16.04:

      echo -e "foo\r\rbar"

      Outputs:

      bar

       

      But if I create a job on jenkins that executes the same bash command the output is:

      foo
      
      bar
      

      Is this intended? Is there any way of changing this behaviour?

            Unassigned Unassigned
            vlopez Victor Lopez
            Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: