[Coco] TAB-completion, VDIR does a simular task.

Stephen H. Fischer SFischer1 at MindSpring.com
Sat Oct 1 13:27:00 EDT 2005


Hi,

Mannequin* wrote:
> On Fri, 30 Sep 2005 21:43:45 -0500
> Any room for TAB-completion? ;)
>
> -M.

RTSI-root  \OS9\OS9_6X09\APPS\VDir.lzh

While not as straightforward as TAB-completion, VDIR does a similar task.

---------------------------------------------------


This is a shell+ subroutine and is useful only when called from shellplus
2.1.

Given the following directory contents:
   OS9{/R0/TEST}:t             ;*Note: Echo input lines ON.
   OS9{/R0/TEST}:dir
   dir

Directory of .  13:57:10

Owner Last modified Attributes Sector Bytecount Name
----- ------------- ---------- ------ --------- ----------
  0  93/07/09 1344  --e-rewr      34        53 VDir.bin
  0  93/07/09 1343  ----r-wr      36       676 VDir.asm
  0  93/07/09 1356  d-ewrewr      3E        40 LONG_AND_DIFUCILT_TO_GET_RIHT

The following command will load the Shell Sub Variables :
   OS9{/R0/TEST}::VDir *
   vdir VDir.bin VDir.asm LONG_AND_DIFUCILT_TO_GET_RIHT

and the following command will show the results.
   OS9{/R0/TEST}:var.?
   var.?

   ..
   Shell Sub Variables :
   VAR.0=VDir.bin
   VAR.1=VDir.asm
   VAR.2=LONG_AND_DIFUCILT_TO_GET_RIHT
   VAR.3=
   ..
   VAR.9=

Then you may then change to the directory with
   OS9{/R0/TEST}:cd %%2
   cd LONG_AND_DIFUCILT_TO_GET_RIHT

Or run ident on the first with
   OS9{/R0/TEST}:ident %%0
   ident VDir.bin

   Header for:  VDir
   Module size: $0053    #83
   Module CRC:  $30340F (Good)
   Hdr parity:  $3B
   Edition:     $01      #1
   Ty/La At/Rv: $51 $81
   Usr 5 mod, 6809 obj, re-en, R/O







More information about the Coco mailing list