diff options
Diffstat (limited to 'system/pdksh/patches/041_Debian-tilde-expansion.patch')
-rw-r--r-- | system/pdksh/patches/041_Debian-tilde-expansion.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/pdksh/patches/041_Debian-tilde-expansion.patch b/system/pdksh/patches/041_Debian-tilde-expansion.patch new file mode 100644 index 0000000000..30741eb470 --- /dev/null +++ b/system/pdksh/patches/041_Debian-tilde-expansion.patch @@ -0,0 +1,15 @@ + * Don't do tilde expansion after `=' sign in non-assignments. + Patch stolen from the posh package (closes: #187839). +Index: pdksh-5.2.14/eval.c +=================================================================== +--- pdksh-5.2.14.orig/eval.c 2008-04-15 20:49:47.000000000 +0200 ++++ pdksh-5.2.14/eval.c 2008-04-15 20:52:19.000000000 +0200 +@@ -627,7 +627,7 @@ + #endif /* BRACE_EXPAND */ + case '=': + /* Note first unquoted = for ~ */ +- if (!(f & DOTEMP_) && !saw_eq) { ++ if (!(f & DOTEMP_) && !saw_eq && (f & DOASNTILDE)) { + saw_eq = 1; + tilde_ok = 1; + } |