Dr. Werner Fink 2012-06-06 12:18:05 +00:00 committed by Git OBS Bridge
parent 24a61ecb21
commit 4c4cff2503
3 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 6 12:16:52 UTC 2012 - werner@suse.de
- Do not ignore backslashes/escapes for read builtin (bnc#765171)
-------------------------------------------------------------------
Wed May 23 10:33:09 UTC 2012 - werner@suse.de

View File

@ -108,6 +108,7 @@ Patch22: ksh93-limit-name-len.dif
Patch23: ksh93-foreground-prgrp.dif
Patch24: ksh93-builtin.dif
Patch25: ksh93-vmleak.dif
Patch26: ksh93-read-dont-ignore-esc.dif
Patch42: ksh-locale.patch
%description
@ -189,6 +190,7 @@ fi
%patch23
%patch24
%patch25
%patch26
%build
#

View File

@ -0,0 +1,25 @@
--- src/cmd/ksh93/bltins/read.c
+++ src/cmd/ksh93/bltins/read.c 2012-06-04 09:58:53.848644056 +0200
@@ -570,7 +570,13 @@ int sh_readline(register Shell_t *shp,ch
case S_QUOTE:
c = shp->ifstable[*cp++];
inquote = !inquote;
- goto skip;
+ if(val)
+ {
+ stakputs(val);
+ use_stak = 1;
+ *val = 0;
+ }
+ continue;
case S_ESC:
/* process escape character */
if((c = shp->ifstable[*cp++]) == S_NL)
@@ -582,6 +588,7 @@ int sh_readline(register Shell_t *shp,ch
{
stakputs(val);
use_stak = 1;
+ was_escape = 1;
*val = 0;
}
continue;