Open mmicheo opened 3 years ago
Currently, a call to swift with echo 'abcde' | sift '(.*)c(.*)' --replace='$1\n$2' results in ab\nde. Instead of a carriage return character, it includes a '\' char followed by a 'n' char.
echo 'abcde' | sift '(.*)c(.*)' --replace='$1\n$2'
ab\nde
Expected result: replace \n with a carriage return. ab de
\n
ab
de
Currently, a call to swift with
echo 'abcde' | sift '(.*)c(.*)' --replace='$1\n$2'
results inab\nde
. Instead of a carriage return character, it includes a '\' char followed by a 'n' char.Expected result: replace
\n
with a carriage return.ab
de