Is it possible to implement a local export in zsh? Possibly using try and always?
Does this create race-conditions?
By local export"local export", I mean sthsomething exactly like a local variable, that is accessible to the subprocesses (in scope).
Example:
function a() {
 local export YACY_TIMEOUT=60
 yacy -r -d sth
 }
 export YACY_TIMEOUT=4
 echo "$YACY_TIMEOUT" # 4
 a
 echo "$YACY_TIMEOUT" # 4
 
                 
                 
                