We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78d08ef + 332d626 commit d9be498Copy full SHA for d9be498
templates/sh.erb
@@ -137,7 +137,7 @@ function save_environment(){
137
138
# just piping env to a file doesn't quote the variables. This does
139
# filter out multiline junk, _, and functions. _ is a readonly variable.
140
- env | grep -v "^_=" | grep -v "^[^=(]*()=" | egrep "^[^ ]+=" | while read ENVVAR ; do
+ env | grep -v "^_=" | grep -v "^[^=(]*()=" | grep -v "^BASH_FUNC_.*%%=" |egrep "^[^ ]+=" | while read ENVVAR ; do
141
local NAME=${ENVVAR%%=*}
142
# sed is to preserve variable values with dollars (for escaped variables or $() style command replacement),
143
# and command replacement backticks
0 commit comments