Bug 8871

Summary: sed fails to escape newline
Product: Busybox Reporter: Elifarley <elifarley>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs, elifarley
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugs.busybox.net/show_bug.cgi?id=5084
https://bugs.busybox.net/show_bug.cgi?id=8791
Host: Target:
Build:

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.