Bug 8871 - sed fails to escape newline
Summary: sed fails to escape newline
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 17:47 UTC by Elifarley
Modified: 2016-04-24 14:18 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elifarley 2016-04-21 17:47:32 UTC
If I run the command below using BusyBox in Alpine Linux 3.3, a '\' followed by the letter 'n' is printed by sed:

sed -i '1 i\execute pathogen#infect()\ncall pathogen#helptags()\n' "$HOME"/.vimrc

When using sed proper, '\n' is printed as a newline character instead.
Comment 1 Denys Vlasenko 2016-04-24 14:18:39 UTC
Fixed in git, thanks.