From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25068 invoked from network); 7 Oct 1999 13:39:46 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Oct 1999 13:39:46 -0000 Received: (qmail 8136 invoked by alias); 7 Oct 1999 13:39:01 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2662 Received: (qmail 8128 invoked from network); 7 Oct 1999 13:38:56 -0000 Date: Thu, 7 Oct 1999 15:38:45 +0200 From: Vincent Lefevre To: zsh-users@sunsite.auc.dk Subject: paths for filename arguments Message-ID: <19991007153845.A3241@vin.ens-lyon.fr> Mail-Followup-To: zsh-users@sunsite.auc.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0pre3i X-Mailer-Info: http://www.vinc17.org/mutt_eng.html Content-Transfer-Encoding: 8bit Is there a way to specify a path in arguments (a bit like with RISC OS, for those who know -- but this would be done here at the shell level)? For instance, $ lesspath=(~/text ~/doc) $ less less:blah should make zsh search for file "blah" in the working directory, and if it is not there, it should be searched in ~/text, then ~/doc. Before executing less, zsh should replace "less:" by nothing or the correct path element. Perhaps this can already be done with variable expansion, but with a more complicated syntax, I suppose... One could also define compctl-like commands to avoid writing "less:", so that $ less --option blah would add a correct path to "blah", but do nothing with "--option". -- Vincent Lefèvre - PhD student in Computer Science Web: or - 100% validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc.