From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam To: 9fans mailing list <9fans@cse.psu.edu> Subject: Re: [9fans] Ugly hack In-Reply-To: <20030215174605.I9084@cackle.proxima.alt.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Sat, 15 Feb 2003 11:18:41 -0500 Topicbox-Message-UUID: 61f8b4d6-eacb-11e9-9e20-41e7f4b1d025 Would I were bothered by this, I'ld be more inclined towards: fn cdd { for(i) { if(test -d $i){ cd $i } } } Note there's a bug in this approach due to rc's for lacking a break equivalent, but it's unlikely to bite. Always better to use the tools than hack them if at all possible. Cheers, Sam