runscript converts all newlines to carriage returns
Bug #1669527 reported by
nega
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
minicom (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
minicom's "runscript" replaces all newline sequences in the "send" command with carriage return characters, instead of newline characters.
1) ubuntu 14.04
2) minicom-2.7-1
3) expected behavior:
~/Downloads/
❯ cat /tmp/foo
send \cnewline here ->\n
~/Downloads/
❯ ./src/runscript /tmp/foo | xxd
0000000: 6e65 776c 696e 6520 6865 7265 202d 3e0a newline here ->.
4) actual behavior:
~/Downloads/
❯ cat /tmp/foo
send \cnewline here ->\n
~/Downloads/
❯ ./src/runscript /tmp/foo | xxd
0000000: 6e65 776c 696e 6520 6865 7265 202d 3e0d newline here ->.
The attached script fixes the issue
To post a comment you must log in.
The attachment "minicom_ runscript. diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]