Thread (10 messages) flat view 10 messages, 1 author, 2016-08-05
STALE3666d

Revision v5 of 6 in this series.

Revisions (6)
  1. v3 [diff vs current]
  2. v4 [diff vs current]
  3. v5 current
  4. v6 [diff vs current]
  5. v7 [diff vs current]
  6. v8 [diff vs current]

[PATCH v5 8/9] test-lib-functions.sh: Add lf_to_nul

From: Jeff Hostetler <hidden>
Date: 2016-08-05 22:03:39
Subsystem: the rest · Maintainer: Linus Torvalds

From: Jeff Hostetler <redacted>

Add lf_to_nul() function to test-lib-functions.

Signed-off-by: Jeff Hostetler <redacted>
---
 t/test-lib-functions.sh | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 4f7eadb..fdaeb3a 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -81,6 +81,10 @@ test_decode_color () {
 	'
 }
 
+lf_to_nul () {
+	perl -pe 'y/\012/\000/'
+}
+
 nul_to_q () {
 	perl -pe 'y/\000/Q/'
 }
-- 
2.8.0.rc4.17.gac42084.dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help