source:
vendor/bash/3.1/examples/scripts/self-repro
| Last change on this file was 3228, checked in by , 19 years ago | |
|---|---|
| File size: 288 bytes | |
| Line | |
|---|---|
| 1 | # self-reproducing script (except for these comment lines -- remove them) |
| 2 | # i got this from the ksh93 faq: |
| 3 | # http://www.kornshell.com/doc/faq.html |
| 4 | # |
| 5 | n=" |
| 6 | " q="'" x="cat <<-!" y=! z='n="$n" q="$q" x="$x" y=$y z=$q$z$q$n$x$n$z$n$y' |
| 7 | cat <<-! |
| 8 | n="$n" q="$q" x="$x" y=$y z=$q$z$q$n$x$n$z$n$yb |
| 9 | ! |
Note:
See TracBrowser
for help on using the repository browser.
