Blame SOURCES/sed-b-flag.patch
|
|
5a67ee |
From 613057152c4f6caba22a15ed2ff0aeb9c4ce6a83 Mon Sep 17 00:00:00 2001
|
|
|
5a67ee |
From: Jakub Martisko <jamartis@redhat.com>
|
|
|
5a67ee |
Date: Wed, 5 Feb 2020 15:50:15 +0100
|
|
|
5a67ee |
Subject: [PATCH] enable the -b option on all platforms
|
|
|
5a67ee |
|
|
|
5a67ee |
---
|
|
|
5a67ee |
sed/sed.c | 5 +++++
|
|
|
5a67ee |
1 file changed, 5 insertions(+)
|
|
|
5a67ee |
|
|
|
5a67ee |
diff --git a/sed/sed.c b/sed/sed.c
|
|
|
5a67ee |
index f75e4b6..1ca5839 100644
|
|
|
5a67ee |
--- a/sed/sed.c
|
|
|
5a67ee |
+++ b/sed/sed.c
|
|
|
5a67ee |
@@ -174,7 +174,12 @@ Usage: %s [OPTION]... {script-only-if-no-other-script} [input-file]...\n\
|
|
|
5a67ee |
fprintf (out, _(" -b, --binary\n\
|
|
|
5a67ee |
open files in binary mode (CR+LFs are not" \
|
|
|
5a67ee |
" processed specially)\n"));
|
|
|
5a67ee |
+#else
|
|
|
5a67ee |
+ fprintf (out, _(" -b, --binary\n\
|
|
|
5a67ee |
+ does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX \n\
|
|
|
5a67ee |
+ (open files in binary mode; CR+LF are not processed specially)\n" ));
|
|
|
5a67ee |
#endif
|
|
|
5a67ee |
+
|
|
|
5a67ee |
fprintf (out, _(" -l N, --line-length=N\n\
|
|
|
5a67ee |
specify the desired line-wrap length for the `l' command\n"));
|
|
|
5a67ee |
fprintf (out, _(" --posix\n\
|
|
|
5a67ee |
--
|
|
|
5a67ee |
2.24.1
|
|
|
5a67ee |
|