summaryrefslogtreecommitdiff
path: root/examples/scripts/self-repro
blob: 951d4e402cd3ceb7cdbf963047b2b318fc07f30a (plain)
1
2
3
4
5
6
7
8
9
# self-reproducing script (except for these comment lines -- remove them)
# i got this from the ksh93 faq:
#	http://www.kornshell.com/doc/faq.html
#
n="
" q="'" x="cat <<-!" y=! z='n="$n" q="$q" x="$x" y=$y z=$q$z$q$n$x$n$z$n$y'
cat <<-!
n="$n" q="$q" x="$x" y=$y z=$q$z$q$n$x$n$z$n$yb
!