Re: for loop goes to stopped job when Ctrl+C is pressed

2022-12-20 Thread Chet Ramey
On 12/17/22 3:59 PM, ks1322 ks1322 wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_S

documentation for ${@: -1} is unclear

2022-12-20 Thread Emanuele Torre
The bash manual says: If parameter is ‘@’ or ‘*’, the result is length positional parameters beginning at offset. A negative offset is taken relative to one greater than the greatest positional parameter, so an offset of -1 evaluates to the last positional parameter. It is an expansion error i