To overcome the problem of Starlink NDF and HDS filenames usually being required without the .sdf extension, .sdf will be omitted from the end of any completed filename. This behaviour may be altered by setting environment variable ADAM_EXTN to a comma-separated list of extensions (in fact any strings) which are to be omitted from the end of completed filenames. If no truncation of filenames is required, ADAM_EXTN should be set to a null string.
When a single match is found, the filename is truncated if required and copied to the input line followed by a single space.
For example, suppose the default for filename truncation (.sdf) is in
use and the current directory contains two files file.dat and
The dialogue might go as follows (
<> indicates typing by the user):
Give NDF name > <x><TAB> No match.[beep] Give NDF name > <f><TAB> Multiple matches.[beep] Give NDF name > file.<CNTL/D> file.dat file.sdf Give NDF name > file.<s><TAB> Give NDF name > file <Return> Give auxiliary data file name > <file.d><TAB> Give auxiliary data file name > file.dat <Return>(The last four lines would appear as two lines on the terminal, the second and fourth overwriting the first and third respectively.)