diff options
author | James Meyer <james.meyer@operamail.com> | 2009-04-03 22:45:21 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-04-03 22:45:21 (GMT) |
commit | e7467efc34be8dfd5a191d77198d67c6ae1bfc7b (patch) | |
tree | 0939ec5c93b449b769289e8b6758641404885aa0 /abs/extra-testing/mc/mc-4.6.1-bash-all.patch | |
parent | 972d85587c4c79656fa2401c13eb3e4c9802e024 (diff) | |
download | linhes_pkgbuild-e7467efc34be8dfd5a191d77198d67c6ae1bfc7b.zip linhes_pkgbuild-e7467efc34be8dfd5a191d77198d67c6ae1bfc7b.tar.gz linhes_pkgbuild-e7467efc34be8dfd5a191d77198d67c6ae1bfc7b.tar.bz2 |
MC & slang: adding to repo.
Diffstat (limited to 'abs/extra-testing/mc/mc-4.6.1-bash-all.patch')
-rw-r--r-- | abs/extra-testing/mc/mc-4.6.1-bash-all.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/extra-testing/mc/mc-4.6.1-bash-all.patch b/abs/extra-testing/mc/mc-4.6.1-bash-all.patch new file mode 100644 index 0000000..e3e2afc --- /dev/null +++ b/abs/extra-testing/mc/mc-4.6.1-bash-all.patch @@ -0,0 +1,33 @@ +--- /src/subshell.c.000 2006-05-08 23:11:48.000000000 +0200 ++++ /src/subshell.c 2006-10-28 15:40:46.000000000 +0200 +@@ -745,29 +745,13 @@ subshell_name_quote (const char *s) + memcpy (d, cmd_start, len); + d += len; + +- /* +- * Print every character in octal format with the leading backslash. +- * tcsh and zsh may require 4-digit octals, bash < 2.05b doesn't like them. +- */ +- if (subshell_type == BASH) { + for (; *s; s++) { +- /* Must quote numbers, so that they are not glued to octals */ + if (isalpha ((unsigned char) *s)) { + *d++ = (unsigned char) *s; + } else { +- sprintf (d, "\\%03o", (unsigned char) *s); +- d += 4; +- } +- } +- } else { +- for (; *s; s++) { +- if (isalnum ((unsigned char) *s)) { +- *d++ = (unsigned char) *s; +- } else { + sprintf (d, "\\0%03o", (unsigned char) *s); + d += 5; + } +- } + } + + memcpy (d, common_end, sizeof (common_end)); + |