[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: local/typeset/declare -p - outputs invalid declare -- -
From: |
Greg Wooledge |
Subject: |
Re: local/typeset/declare -p - outputs invalid declare -- - |
Date: |
Mon, 31 Oct 2022 13:30:55 -0400 |
On Mon, Oct 31, 2022 at 06:12:14PM +0100, Alex fxmbsw7 Ratchev wrote:
> hi , sorry.. whats the purpose of local -
> informational question
a. Since there is no `declare -' equivalent of `local -', make sure to use
`local -' in the output of `local -p'.
-----
s. The `local' builtin takes a new argument: `-', which will cause it to save
the single-letter shell options and restore their previous values at
function return.
>From two different parts of CHANGES.