Care should be taken if a trailing string enclosed in square brackets is appended to the end of the file name. These are interpreted first as a globbing pattern. Thus "fred[12]" would match files with base names "fred1" and "fred2". If the pattern does not match any existing files, then the trailing "[..]" string is next interpreted as a foreign extension specifier. Thus if fred.fit is a multi-extension FITS file, "fred[12]" would be interpreted as the twelfth image extension in fred.fit only if files cannot be found with basenames "fred1" or "fred2".
NDG [1ex