From owner-freebsd-questions@FreeBSD.ORG Mon Jun 7 18:26:06 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC9DB106566B for ; Mon, 7 Jun 2010 18:26:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id A79358FC08 for ; Mon, 7 Jun 2010 18:26:06 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx02.qsc.de (Postfix) with ESMTP id B461F1E7D5; Mon, 7 Jun 2010 20:26:05 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o57IQ5LE001550; Mon, 7 Jun 2010 20:26:05 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 7 Jun 2010 20:26:04 +0200 From: Polytropon To: Chad Perrin Message-Id: <20100607202604.3cdfe13c.freebsd@edvax.de> In-Reply-To: <20100607040607.GC29350@guilt.hydra> References: <20100605231715.GD69990@libertas.local.camdensoftware.com> <20100606163136.GA27788@guilt.hydra> <20100606175043.GA46089@libertas.local.camdensoftware.com> <20100606182148.GB28095@guilt.hydra> <20100606200628.GA8748@holstein.holy.cow> <20100607040607.GC29350@guilt.hydra> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: which is the basic differences between the shells? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 18:26:07 -0000 On Sun, 6 Jun 2010 22:06:07 -0600, Chad Perrin wrote: > On Sun, Jun 06, 2010 at 10:06:28AM -1000, parv@pair.com wrote: > > > > I cannot say about the tcsh features. > > That's kind of a shame, since tcsh is what I prefer these days, having > long since given up on bash (pretty much immediately after I started > using FreeBSD as my primary OS instead of bash, and realized I preferred > the csh-style syntax). I may use this chance to add that I'm also a fan of FreeBSD's csh especially from the standpoint of dialog behaviour. For example, autocompletition is - in my opinion - much better than in bash (which does force too much interaction). Example: $ ls /usr/local/bin/m[tab] BEEP! *** [tab] Display all 146 possibilities? (y or n) *** y mDNSClientPosix* moc-qt4* mDNSIdentify* modutil* --More--(1%) *** q $ ls /usr/local/bin/m The "***" marks all unneccessary interaction that interrupts work flow. Also, csh's history behaviour is better - again in my opinion. For example, if you enter "bl" and press the up / down arrow keys, you can browse all commands that started with "bl", e. g. "bla", "bli", "blubb", "blonk" and so on. In bash, you would browse through *all* commands using the same approach. I am aware of the fact that most shell behaviour can be configured or reprogrammed, but I'm just talking about the default settings. > I've never really tried using vi-mode editing in any shell, despite the > fact I'm a constant vi user (even a vi gangsta, one might say). Maybe I > should some day. Thus far, though, I don't even know if tcsh supports > vi-mode editing. According to "man csh", it is possible: The command-line editor (+) Command-line input can be edited using key sequences much like those used in GNU Emacs or vi(1). The editor is active only when the edit shell variable is set, which it is by default in interactive shells. The bindkey builtin can display and change key bindings. Emacs-style key bindings are used by default (unless the shell was compiled other- wise; see the version shell variable), but bindkey can change the key bindings to vi-style bindings en masse. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...