Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2001 17:24:32 -0800 (PST)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/shells/bash2/files patch-execute_cmd.c
Message-ID:  <200103170124.f2H1OWK17634@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <naddy@mips.inka.de>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103170124.f2H1OWK17634>