.
OBS-URL: https://build.opensuse.org/package/show/shells/ksh?expand=0&rev=118
This commit is contained in:
parent
24a61ecb21
commit
4c4cff2503
@ -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
|
||||
|
||||
|
2
ksh.spec
2
ksh.spec
@ -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
|
||||
#
|
||||
|
25
ksh93-read-dont-ignore-esc.dif
Normal file
25
ksh93-read-dont-ignore-esc.dif
Normal 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;
|
Loading…
Reference in New Issue
Block a user