summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-03-17 01:24:32 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-03-17 01:24:32 +0000
commit7f8208f177d6026a6cb44519234535b86d88c34b (patch)
tree5609d5a993577f276669b3076b2c72c16c4535a9 /chinese
parentFix pkg-plist. (diff)
Fix a segmentation fault on the Alpha.
As shown with this script : m(){ if [ $1 -eq 1 ];then echo $2 $3;else m $(($1-1)) $2 $4 $3;m 1 $2 \ $3 $4;m $(($1-1)) $4 $3 $2;fi;};if [ $# -eq 3 ]&&[ $3 -ge 1 -a $1 -le \ 3 -a $1 -ge 1 -a $2 -le 3 -a $2 -ge 1 -a $1 -ne $2 ];then m $3 $1 $2 $\ ((6-$1-$2)); else echo Usage: /bin/sh hanoi.sh from to num; fi #by rhb $ bash2 hanoi.sh 1 2 3 1 2 1 3 Segmentation fault (core dumped) Submitted by: Christian Weisgerber <naddy@mips.inka.de>
Notes
Notes: svn path=/head/; revision=39943
Diffstat (limited to 'chinese')
0 files changed, 0 insertions, 0 deletions