help-bash
[Top][All Lists]
Advanced

[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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]