From owner-cvs-all Fri Mar 16 17:24:36 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 03EF537B719; Fri, 16 Mar 2001 17:24:33 -0800 (PST) (envelope-from obrien@FreeBSD.org) Received: (from obrien@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2H1OWK17634; Fri, 16 Mar 2001 17:24:32 -0800 (PST) (envelope-from obrien) Message-Id: <200103170124.f2H1OWK17634@freefall.freebsd.org> From: "David E. O'Brien" Date: Fri, 16 Mar 2001 17:24:32 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/shells/bash2/files patch-execute_cmd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG obrien 2001/03/16 17:24:32 PST Added files: shells/bash2/files patch-execute_cmd.c Log: 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message