Re: Does bash save/restore terminal settings as required by POSIX job control?

2020-06-23 Thread Chet Ramey
On 6/22/20 9:26 PM, Godmar Back wrote: > In any event, this was very illuminating - though I have one last > question: why did you not implement it? It's not a requirement. The text you quoted is from the rationale, and there is no corresponding text in the normative portion of the standard. It's

problem with extra space; setting? cygwin only?

2020-06-23 Thread L A Walsh
I do: set output echo ">$1<" >output< output=""printf ${1:+-v $1} "%s:%s" 23 myproc -Bash: printf: ` output': not a valid identifier for some reason it is regarding the space before $1 in the printf as part of the variable name. It doesn't seem to do this on linux (lnx 4.4.12(3), cyg-4.4.12

Re: problem with extra space; setting? cygwin only?

2020-06-23 Thread Greg Wooledge
On Tue, Jun 23, 2020 at 12:21:24PM -0700, L A Walsh wrote: > set output > output=""printf ${1:+-v $1} "%s:%s" 23 myproc > -Bash: printf: ` output': not a valid identifier Your command is simply wrong. You've got two double-quotes in a row, which simply cancel each other out, as they contain only

Re: [PATCH 5.1] zread: read files in 4k chunks

2020-06-23 Thread L A Walsh
The 'stat(2)' system call returns an optimal i/o size for files since some files in addition to being on disks with a 4k sector size (making 128bytes a slow choice for reads, and a real slow choice for writes), also can be on a RAID with it's own optimal i/o size. I think the 'stat(1)' prog shows

Re: problem with extra space; setting? cygwin only?

2020-06-23 Thread L A Walsh
there was a linefeed in my source between output="" and the printf. It's a gmail feature to mangle your input. On Tue, Jun 23, 2020 at 12:30 PM Greg Wooledge wrote: > On Tue, Jun 23, 2020 at 12:21:24PM -0700, L A Walsh wrote: > > set output > > output=""printf ${1:+-v $1} "%s:%s" 23 myproc > >

Re: problem with extra space; setting? cygwin only?

2020-06-23 Thread L A Walsh
It's a gmail feature to mangle your input in weird ways when you cut/paste. the line with 'output=""' is separate from the "printf" line. Sorry. On Tue, Jun 23, 2020 at 12:30 PM Greg Wooledge wrote: > On Tue, Jun 23, 2020 at 12:21:24PM -0700, L A Walsh wrote: > > set output > > output=""print

Re: problem with extra space; setting? cygwin only?

2020-06-23 Thread Greg Wooledge
On Tue, Jun 23, 2020 at 12:33:23PM -0700, L A Walsh wrote: > It's a gmail feature to mangle your input in weird ways when you cut/paste. > the line with 'output=""' is separate from the "printf" line. Sorry. First, stop top-quoting. Second, if you know that gmail is horrible and is going to mang

Re: problem with extra space; setting? cygwin only?

2020-06-23 Thread Eli Schwartz
On 6/23/20 3:33 PM, L A Walsh wrote: > On Tue, Jun 23, 2020 at 12:30 PM Greg Wooledge wrote: > >> On Tue, Jun 23, 2020 at 12:21:24PM -0700, L A Walsh wrote: >>> set output >>> output=""printf ${1:+-v $1} "%s:%s" 23 myproc >>> -Bash: printf: ` output': not a valid identifier >> >> Your command is

Re: problem with extra space; setting? cygwin only?

2020-06-23 Thread Chet Ramey
On 6/23/20 3:21 PM, L A Walsh wrote: > I do: > > set output > echo ">$1<" >> output< > output=""printf ${1:+-v $1} "%s:%s" 23 myproc > > > > -Bash: printf: ` output': not a valid identifier It looks like word splitting on the result of ${1:+-v $1} isn't taking place. That might be due to IFS;

Re: problem with extra space; setting? cygwin only?

2020-06-23 Thread L A Walsh
re: IFS... yup. that was it, not sure how it got cleared, but it did. Thanks for the clue. As for gmailnecessity creates unfortunate circumstances...having your main file system (RAID 0) fail, along with your backups (in a separate disk enclosure, also RAID 0), isn't something that happens ev