repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s3: smbd: Add check_path_syntax_smb2_posix().
[Samba.git]
/
selftest
/
save.env.sh
blob
ff9ba32933f918fd450a662be13e3e185cea87d1
1
#!/bin/sh
2
3
{
4
vars
=
$
(
set
|
5
grep
"^[a-zA-Z][^=]*='[^']*'$"
|
6
grep
-v
'^IFS='
|
7
grep
-v
'^TERM'
|
8
grep
-v
'^PPID'
|
9
grep
-v
'^PS[1-9]='
|
10
cat
)
11
echo
"
${vars}
"
12
echo
"
${vars}
"
|
sed
-e
's!^\([a-zA-Z][^=]*\)=.*$!export \1!'
13
} >
bin
/
restore.env.
source
14
15
echo
"RUN: '. bin/restore.env.source'"