Adding debian version 5.2.37-2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
fa1b3d3922
commit
fc8a52c443
59 changed files with 8007 additions and 0 deletions
31
debian/patches/bash-default-editor.diff
vendored
Normal file
31
debian/patches/bash-default-editor.diff
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
# DP: Use `command -v editor`, as an editor, if available.
|
||||
|
||||
--- a/bashline.c
|
||||
+++ b/bashline.c
|
||||
@@ -936,8 +936,8 @@ hostnames_matching (text)
|
||||
command being entered (if no explicit argument is given), otherwise on
|
||||
a command from the history file. */
|
||||
|
||||
-#define VI_EDIT_COMMAND "fc -e \"${VISUAL:-${EDITOR:-vi}}\""
|
||||
-#define EMACS_EDIT_COMMAND "fc -e \"${VISUAL:-${EDITOR:-emacs}}\""
|
||||
+#define VI_EDIT_COMMAND "fc -e \"${VISUAL:-${EDITOR:-$(command -v editor || echo vi)}}\""
|
||||
+#define EMACS_EDIT_COMMAND "fc -e \"${VISUAL:-${EDITOR:-$(command -v editor || echo emacs)}}\""
|
||||
#define POSIX_VI_EDIT_COMMAND "fc -e vi"
|
||||
|
||||
static int
|
||||
--- a/builtins/fc.def
|
||||
+++ b/builtins/fc.def
|
||||
@@ -171,11 +171,11 @@ set_verbose_flag ()
|
||||
}
|
||||
|
||||
/* String to execute on a file that we want to edit. */
|
||||
-#define FC_EDIT_COMMAND "${FCEDIT:-${EDITOR:-vi}}"
|
||||
+#define FC_EDIT_COMMAND "${FCEDIT:-${EDITOR:-$(command -v editor || echo vi)}}"
|
||||
#if defined (STRICT_POSIX)
|
||||
# define POSIX_FC_EDIT_COMMAND "${FCEDIT:-ed}"
|
||||
#else
|
||||
-# define POSIX_FC_EDIT_COMMAND "${FCEDIT:-${EDITOR:-ed}}"
|
||||
+# define POSIX_FC_EDIT_COMMAND "${FCEDIT:-${EDITOR:-$(command -v editor || echo ed)}}"
|
||||
#endif
|
||||
|
||||
int
|
Loading…
Add table
Add a link
Reference in a new issue