Please enable JavaScript to view this site.

A-Shell Reference

Reviewed and reorganized June 2020

The DO file processor supports the ability to specify the upper or lower case version of a $KBDn variable on the command line, which can be handy when building case-sensitive Unix commands from input strings. The following example makes this clear:

;TEST.CMD

:<Input something >

:K1

DOTEST $KBD1 LCS($KBD1) UCS($KBD1)

 

;DOTEST.DO

:<Command line: $0 $1 $2   

>

 

Assuming that the user had input "SiLly" in response to the prompt in test.cmd, the output of the DOTEST command would be:

Command line: SiLly silly SILLY

Note that these two functions , LCS($KBDn) and UCS($KBDn), are the only ones supported on the DO command line.

History

December 2004, A-Shell 4.9.909:  Function added to A-Shell. Requires DO.LIT 2.1(121) or later.