Re: Option to disable VSUSP at prompt (feature request with proof of concept)

2016-12-21 Thread Eric Pruitt
On Thu, Nov 24, 2016 at 12:05:20AM -0800, Eric Pruitt wrote: > In my Bash configuration, I have things setup so Ctrl+Z is no longer > translated into a signal at the Bash prompt so it can be remapped. Most > recently, I decided to modify the Bash source to implement this change > in the interpreter

Re: incorrect lseek() when processing script ending in unterminated line

2016-12-21 Thread Chet Ramey
On 12/21/16 9:35 AM, Stephane Chazelas wrote: > Hello. > > That was discovered at > http://unix.stackexchange.com/a/331884 > > Consider this script that modifies itself (and happens not to > end in a newline character): Thanks for the report, looks like a relatively unlikely scenario. -- ``The

Re: incorrect lseek() when processing script ending in unterminated line

2016-12-21 Thread Stephane Chazelas
2016-12-21 14:35:44 +, Stephane Chazelas: [...] > That sync_buffered_stream is meant to seek back to where we're > meant to resume reading the script when we've read more than > needed, but here b_inputp > b_used would suggest we've processed > code that is passed what we've read. Or more likel

incorrect lseek() when processing script ending in unterminated line

2016-12-21 Thread Stephane Chazelas
Hello. That was discovered at http://unix.stackexchange.com/a/331884 Consider this script that modifies itself (and happens not to end in a newline character): $ printf %s 'printf "\necho %s\n" {1..10} >> $0' > script.sh; bash -x ./script.sh + printf '\necho %s\n' 1 2 3 4 5 6 7 8 9 10 + echo 1

Re: bug report

2016-12-21 Thread Greg Wooledge
Forwarding to the mailing list. On Wed, Dec 21, 2016 at 07:12:46AM +, Hossein Vatani wrote: > Hi,many thanks for your quick feedback.I tried many tricks, let me give more > explain.assume my password is:  e'r"d`fg!wsif i put it in single > qoutation('e'r"d`fg!ws') there are three single quot