From owner-freebsd-standards@FreeBSD.ORG Fri Apr 2 14:52:46 2010 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB7F8106564A for ; Fri, 2 Apr 2010 14:52:46 +0000 (UTC) (envelope-from weeks@iastate.edu) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 821DF8FC0A for ; Fri, 2 Apr 2010 14:52:45 +0000 (UTC) Received: by wwb24 with SMTP id 24so1425541wwb.13 for ; Fri, 02 Apr 2010 07:52:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.11.133 with HTTP; Fri, 2 Apr 2010 07:22:56 -0700 (PDT) Date: Fri, 2 Apr 2010 08:22:56 -0600 Received: by 10.216.86.85 with SMTP id v63mr1115485wee.32.1270218176802; Fri, 02 Apr 2010 07:22:56 -0700 (PDT) Message-ID: From: Nathan Weeks To: freebsd-standards@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: /bin/sh vi-mode command line editing pathname expansion X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2010 14:52:46 -0000 The following vi-mode command line editing features seem to be missing from FreeBSD 8.0's /bin/sh. = Display the possible shell word expansions (see wordexp ) of the bigword at the current command line position... \ Perform pathname expansion (see Pathname Expansion ) on the current bigword, up to the largest set of characters that can be matched uniquely... * Perform pathname expansion on the current bigword and insert all expansions into the command to replace the current bigword, with each expansion separated by a single ... Full descriptions are here: http://www.opengroup.org/onlinepubs/9699919799/utilities/sh.html This would be handy to have out-of-the-box so one doesn't have to install bash or ksh to have a POSIX shell that can do this kind of pathname expansion in an interactive shell. -- Nathan Weeks