From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 19:24:39 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 992B7557 for ; Sat, 3 Jan 2015 19:24:39 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CA5464D5B for ; Sat, 3 Jan 2015 19:24:39 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id l2so233824wgh.35 for ; Sat, 03 Jan 2015 11:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=kZA0Tq/wSXZZN9N0KwdywVxkE9LW3JnFHdL37nP4dkY=; b=XUrHy7FqlJl0yPrx3vZeo4qBukaK3+0rJGdMAJaUsECb5NxxNNIi7SojOJmvvGqBTC mmCMAl5p7Dz82AbRIiFJo7b8rekWnrSc5/rRfDarOuf+WADmBpAdq9VWJaZTXb8RIUJA gYVmcfZHQb0kIOBIciVZL2D/4FbzOt1SYTRarNHBKMwO4X7AuDll1f1aN4k9aOJGOYXw jrzyncolUenvDH5UHDzrTNaY9XyBvaS5gytK/9v1WGyhp+2ZPQ4d70LmEGOXwziuc9vS fODSIO3Jjb+qqpuT3/kTyNvGu5kPfMhHWF5mJlkkzXAEWR7N9/TWuzxlO8Wfr9J3v0jU M3dg== X-Received: by 10.180.96.33 with SMTP id dp1mr9494935wib.13.1420313077713; Sat, 03 Jan 2015 11:24:37 -0800 (PST) Received: from [192.168.0.63] (xdsl-89-0-86-112.netcologne.de. [89.0.86.112]) by mx.google.com with ESMTPSA id ck7sm69002558wjb.13.2015.01.03.11.24.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Jan 2015 11:24:36 -0800 (PST) Message-ID: <54A85003.3000301@gmail.com> Date: Sat, 03 Jan 2015 21:24:35 +0100 From: =?UTF-8?Q?Michael_Gr=c3=bcnewald?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:34.0) Gecko/20100101 Firefox/34.0 SeaMonkey/2.31 MIME-Version: 1.0 To: questions@freebsd.org Subject: TCSH completion patterns and the pkg command Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2015 19:24:39 -0000 The C-shell included in the base system is a popular(?) interactive shell among FreeBSD users. It features a useful completion mechanism which works very well for commands using a classical(?) UNIX syntax: command -a argA -b argB --longopt longarg item1 item2 … Some popular software package such as git or subversion use a small variation of this UNIX syntax which, to the best of my knowledge, defeats the C-shell: command subcommand -a argA -b argB --longopt longarg item1 item2 … Today, there is several important commands in FreeBSD using such a scheme, such as pkg, pw or gpart. Do we have any plans to enhance the C-shell completion features to deal nicely with this scheme? An easy workaround is to define an alias for each subcommand, I use this strategy in my tcshfiles: https://github.com/michipili/tcshfiles/commit/9caf67c It would however be nicer to have a more capable completion system in the C-shell. -- Michael