[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: local - im functions , applies to set like -f too ?
From: |
Chet Ramey |
Subject: |
Re: local - im functions , applies to set like -f too ? |
Date: |
Wed, 6 Nov 2024 15:47:48 -0500 |
User-agent: |
Mozilla Thunderbird |
On 11/5/24 9:48 PM, #!microsuxx wrote:
yea hard man time
the man page says ' shell options ' so i thought shopt
whats shopt named in these wordings ?
The man page says
"If name is -, the set of shell options
is made local to the function in which local is invoked: shell
options changed using the set builtin inside the function are
restored to their original values when the function returns."
That makes it pretty clear the saved options are restricted to those
changeable via `set'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
- local - im functions , applies to set like -f too ?, #!microsuxx, 2024/11/05
- Re: local - im functions , applies to set like -f too ?, Lawrence Velázquez, 2024/11/05
- Re: local - im functions , applies to set like -f too ?, #!microsuxx, 2024/11/05
- Re: local - im functions , applies to set like -f too ?, Greg Wooledge, 2024/11/05
- Re: local - im functions , applies to set like -f too ?, #!microsuxx, 2024/11/05
- Re: local - im functions , applies to set like -f too ?, #!microsuxx, 2024/11/05
- Re: local - im functions , applies to set like -f too ?,
Chet Ramey <=
- Re: local - im functions , applies to set like -f too ?, #!microsuxx, 2024/11/06