7 Bug-Reported-by: Chet Ramey <chet.ramey@cwru.edu>
13 POSIX specifies that the `read' builtin invoked from an interative shell
14 must prompt with $PS2 when a line is continued using a backslash while
15 reading from a terminal.
19 *** ../bash-3.2-patched/builtins/read.def Tue Sep 19 08:45:48 2006
20 --- bash-3.2/builtins/read.def Thu May 24 16:03:30 2007
24 register char *varname;
25 ! int size, i, nr, pass_next, saw_escape, eof, opt, retval, code;
26 ! int input_is_tty, input_is_pipe, unbuffered_read;
27 int raw, edit, nchars, silent, have_timeout, fd;
31 register char *varname;
32 ! int size, i, nr, pass_next, saw_escape, eof, opt, retval, code, print_ps2;
33 ! int input_is_tty, input_is_pipe, unbuffered_read, skip_ctlesc, skip_ctlnul;
34 int raw, edit, nchars, silent, have_timeout, fd;
39 char *input_string, *orig_input_string, *ifs_chars, *prompt, *arrayname;
45 char *input_string, *orig_input_string, *ifs_chars, *prompt, *arrayname;
46 ! char *e, *t, *t1, *ps2;
56 USE_VAR(input_is_pipe);
64 i = 0; /* Index into the string that we are reading. */
69 ! for (eof = retval = 0;;)
71 #if defined (READLINE)
76 ! for (print_ps2 = eof = retval = 0;;)
78 #if defined (READLINE)
87 + ps2 = get_string_value ("PS2");
88 + fprintf (stderr, "%s", ps2 ? ps2 : "");
94 retval = zread (fd, &c, 1);
99 ! i--; /* back up over the CTLESC */
106 ! i--; /* back up over the CTLESC */
107 ! if (interactive && input_is_tty && raw == 0)
112 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
113 --- bash-3.2/patchlevel.h Mon Oct 16 14:22:54 2006
116 looks for to find the patch level (for the sccs version string). */
118 ! #define PATCHLEVEL 21
120 #endif /* _PATCHLEVEL_H_ */
122 looks for to find the patch level (for the sccs version string). */
124 ! #define PATCHLEVEL 22
126 #endif /* _PATCHLEVEL_H_ */