s4:torture: Use strlcpy() in gen_name()
[Samba.git] / selftest / save.env.sh
blob9906f95e1ae552de180c763c104d1737138a7547
1 #!/bin/sh
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
15 echo "RUN: '. bin/restore.env.source'"