[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: local -r issue in conjunction with trap
From: |
Dale R. Worley |
Subject: |
Re: local -r issue in conjunction with trap |
Date: |
Sat, 16 Jul 2022 22:06:01 -0400 |
Robert Stoll <robert.stoll@tegonal.com> writes:
> test1 # works as exit happens outside of test1
> test2 # fails with ./src/test.sh: line 6: local: readonlyVar: readonly
> variable
Beware that you haven't specified what you mean by "works" and "fails".
I assume from the context that "fails" means "produces an error
message", but it's much hard to guess what "works" means. In general,
when reporting a problem, always explicitly answer "What do I expect to
happen?" and "What happens?".
Dale
- local -r issue in conjunction with trap, Robert Stoll, 2022/07/15
- Re: local -r issue in conjunction with trap, Lawrence Velázquez, 2022/07/15
- Re: local -r issue in conjunction with trap, Lawrence Velázquez, 2022/07/15
- Re: local -r issue in conjunction with trap, Koichi Murase, 2022/07/15
- Re: local -r issue in conjunction with trap, Lawrence Velázquez, 2022/07/15
- Re: local -r issue in conjunction with trap, Chet Ramey, 2022/07/17
- Re: local -r issue in conjunction with trap, Koichi Murase, 2022/07/17
- Re: local -r issue in conjunction with trap, Chet Ramey, 2022/07/18
- Re: local -r issue in conjunction with trap, Chet Ramey, 2022/07/18
Re: local -r issue in conjunction with trap, Robert Elz, 2022/07/16
Re: local -r issue in conjunction with trap,
Dale R. Worley <=