On Wed, May 28, 2025 at 04:46:51PM -0400, Chet Ramey wrote:
>
> On 5/25/25 5:06 PM, Troy Loveday wrote:
>
> > Bash Version: 5.2
> > Patch Level: 15
> > Release Status: release
> >
> > Description:
> > If MAILPATH and MAILCHECK are set to enable mail notification, then
> > wh
Hi,
`cut -a ARRAY ...` puts its last line of output in ARRAY[0] and discards any
other elements ARRAY used to have. I tried 3 alternatives:
Alternative A: put last line of output in ARRAY[0] but preserve any other
elements.
Alternative B: empty out the array then put lines of output in successiv