From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JDP5e-0001wz-11 for garchives@archives.gentoo.org; Fri, 11 Jan 2008 18:58:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17D30E0814; Fri, 11 Jan 2008 18:57:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 72797E07AE for ; Fri, 11 Jan 2008 18:57:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 4F54EB4013 for ; Fri, 11 Jan 2008 18:57:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.675 X-Spam-Level: X-Spam-Status: No, score=-2.675 required=5.5 tests=[AWL=-0.076, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sMhdY1UkI9lE for ; Fri, 11 Jan 2008 18:57:39 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id F2B4FB47E2 for ; Fri, 11 Jan 2008 18:56:29 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JDP3F-00004t-5E for gentoo-user@gentoo.org; Fri, 11 Jan 2008 18:56:21 +0000 Received: from adsl-75-3-178-22.dsl.chcgil.sbcglobal.net ([75.3.178.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jan 2008 18:56:21 +0000 Received: from reader by adsl-75-3-178-22.dsl.chcgil.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jan 2008 18:56:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: reader@newsguy.com Subject: [gentoo-user] Re: emerge of ksh93 erroring out.. who can interpret Date: Fri, 11 Jan 2008 12:56:11 -0600 Organization: Still searching... Message-ID: <87ejco42es.fsf@newsguy.com> References: <200801081139.54044.alan.mckinnon@gmail.com> <87y7azranl.fsf@newsguy.com> <20080110203452.776ded95@buddha> <87hchk5lhn.fsf@newsguy.com> <20080111192643.37761ba2@buddha> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-75-3-178-22.dsl.chcgil.sbcglobal.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:cmI5VMpjZ7pDWIYRCSp2MjcrYTM= Sender: news X-Archives-Salt: 574c27eb-a610-4c68-a3b9-6dfc6f4a30a0 X-Archives-Hash: d7e160d0e4805b63d8afc77c4472a498 "Matthias B." writes: > On Fri, 11 Jan 2008 11:18:44 -0600 reader@newsguy.com wrote: > >> Can you say why you think zsh is better? > > The bugs. I've hit lots of bash bugs in the past and every version seems > to fix some bugs and introduce new ones. I'm tired of adding new > workarounds to my scripts whenever I update bash. I hope this doesn't come off as just being picky but my perspective is that of someone who is about to switch from using ksh93 as main scripting shell to bash. So I'm interested in what I might run into. So far it looks like it would be ALMOST as easy as symlinking ksh to bash in /bin. The two big things I see that will cause that not to work are lots of calls to `print' and that bash does not understand the easy way you can create an array in ksh: `set -A array somecmd' creating an array of the output of somecmd. So the print calls and array creation would cause failure in nearly all my scripts. Someone on comp.unix.shell pointed out I could create a `print() { echo -e "$@" }' function in bash and add that to my old ksh scripts. So that would cover the print calls in most cases but still pondering the array part. I don't have so many with array calls but enough that it would be some work to fix. But back to your comments. "The bugs. [...]" Can you cite some actual examples of what you are talking about, with enough detail so I can see what you mean? Maybe include one or two of the workarounds you are tired of dealing with? -- gentoo-user@lists.gentoo.org mailing list