Special Features
You can use several additional techniques to save keystrokes in the selang command shell.
capamsc141
You can use several additional techniques to save keystrokes in the selang command shell.
Record and class names are case-sensitive on UNIX but not on Windows.
- Command Recognitionselang recognizes which command you want to execute as soon as you have typed in enough characters to distinguish it from all the other available commands. For example, you can typehoto run thehostscommand as it is the only command beginning with those letters. As soon as you typeho, selang can recognize the intended command. On the other hand, there are several commands that begin with the stringnew. You must add enough characters to distinguish between newusr,newgrp, newfile, and newres.
- AbbreviationsEach command is also associated with a one- to four-letter abbreviation. For example, because there are several commands beginning with the string new, you can also use the abbreviationnufor the commandnewusr. These abbreviations are documented as part of the command syntax for each command. You can enter commands in either uppercase or lowercase.
- Word Completion (UNIX only)PressTabin the middle of a word to complete the word. Word completion is context-sensitive. If more than one word matches the specified string, selang uses the shortest word or word fragment that matches the string. For example, if you type the lettern, selang supplies ew, to form the word new. If this is not the required word, type another one or two characters and pressTabagain to complete the word. Press Ctrl+D to see all the possible options. This is useful if you are not sure which command to use. Using the example in the previous paragraph, if you add the letter u to the word new and pressTab, selang supplies sr, giving you the command newusr.Words that are not part of the selang commands are stored in memory for use by the word completion feature later on in the same session.For example, if you type newusr Mercedes, and then later type showusr Me followed byTab, the abbreviation Me is expanded to Mercedes, as follows:showusr MercedesThis assumes that you have not entered any other user name that begins with "Me".