(patch for Bash) try-block and exception

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Aug 2 01:11:32 EDT 2004


William Park wrote:
>     try 
> 	echo a
> 	raise 2
> 	echo b
>     done in
> 	0) echo okey ;;
> 	1) echo raised 1 ;;
> 	2) echo raised 2 ;;
> 	*) echo really bad ;;
>     esac

try...done...esac? What a delightfully eclectic combination
of syntax. :-)

Why doesn't it end with 'yrt'?

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list