Article View: gnu.bash.bug
Article #391comments on file-completions
From: Sying-Syang Liu
Date: Fri, 28 Jul 1989 20:56
Date: Fri, 28 Jul 1989 20:56
44 lines
2033 bytes
2033 bytes
It will be great if the following "tcsh" [version tcsh 5.4 (Ohio State)
7/18/87 Patch level 0] "possible-completion" features are provided in
bash.
1) If leading string of a file name is not specified, the files with
leading character "." are not listed by tcsh while bash 1.02 lists
all files (except "." and "..").
This bothered me because I have a lot of "." leading files under
my home directory, which will be listed when
"possible-completions" is invoked.
It will be much better if the listing of possible completed files
can be controlled by a shell variable.
2) Some special trailing characters are used in tcsh to indicate the
difference of plain files, directories, symbolic link files.
For example, there are 6 files under the directory ~/test, which
are listed as follows:
coral:~/test/> ls -al
total 6
drwx------ 3 lius 512 Jul 27 23:34 .
drwxr-xr-x 23 lius 2560 Jul 27 23:22 ..
-rw------- 1 lius 0 Jul 27 23:34 .period
drwx------ 2 lius 512 Jul 27 23:22 directory
-rw------- 1 lius 0 Jul 27 23:22 plain
lrwxrwxrwx 1 lius 10 Jul 27 23:23 symbolic -> /etc/hosts
coral:~/test/>
The possible completions (list-choices) under tcsh are
directory/ plain symbolic@
in which it is easy to distinguish the type of each file.
The possible completions under bash are only a list of file names. No
type is indicated. For example, bash 1.02 generated the following
listing for "file-completions":
.period directory plain symbolic
-- lius, Sying-Syang Liu, University of Florida
Technical Details
Message-ID:
<LIUS.89Jul28165642@coral.cis.ufl.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!ginosko!rex!uflorida!bikini!liusShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!ginosko!rex!uflorida!bikini!lius From: lius@coral.cis.ufl.edu (Sying-Syang Liu) Newsgroups: gnu.bash.bug Subject: comments on file-completions Message-ID: <LIUS.89Jul28165642@coral.cis.ufl.edu> Date: 28 Jul 89 20:56:42 GMT Sender: news@uflorida.cis.ufl.EDU Distribution: gnu Organization: UF CIS Department Lines: 44