Re: Revealing secrets in netstart and other shell scripts

2011-01-23 Thread Vadim Zhukov
On 23 January 2011 c. 10:11:52 Philip Guenther wrote: 2011/1/22 Vadim Zhukov persg...@gmail.com: Just got that: 1. ksh updates it's real argv when set -- is used. Can you give an example of when you see that? I'm not seeing it when I tried: $ cat /tmp/f #!/bin/ksh set -- foo bar baz

Revealing secrets in netstart and other shell scripts

2011-01-22 Thread Vadim Zhukov
Hello all. Just got that: 1. ksh updates it's real argv when set -- is used. 2. /etc/netstart does the following (excerpts): while :; do if [ $cmd2 ]; then set -- $cmd2 # ... else read af name mask bcaddr ext1 ext2 || break