[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: preventing complete from putting trailing spaces
From: |
Noel Yap |
Subject: |
Re: preventing complete from putting trailing spaces |
Date: |
Tue, 03 Jun 2003 17:32:06 -0400 |
Chet Ramey wrote:
>
> > I'm trying to write a complete function that'll sometimes return
> > directories and sometimes return files. When it returns directories
> > (with a trailing '/'), I don't want readline to place trailing spaces.
> > OTOH, when it returns files (with no trailing '/'), I do want it to
> > place a trailing space. How do I do this?
>
> Use the `-o filenames' option to complete when installing the compspec.
> Then return the filenames and directory names as usual from the
> completion function and let readline do the right thing.
The problem is that the "files" and "directories" being returned aren't on the
filesystem; they are in a Perforce repository. Will "-o filenames" still work?
Thanks,
Noel
--
NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.