ONE_SHELL_ECHO

Interpret shell metacharacters in a string, without file globbing.

Description:

This routine is intended to expand shell metacharacters within a supplied file name, in the case where the file may not already exist. Any wild card characters within the string are ignored (i.e. there is no file globbing).

Invocation

CALL ONE_SHELL_ECHO( FILESPEC, FILENAME, STATUS )

Arguments

FILESPEC = CHARACTER (Given)
The file specification to be echoed.
FILENAME = CHARACTER (Returned)
The result of expanding any shell metacharacters (except wild cards) within FILESPEC.
STATUS = INTEGER (Given and Returned)
A status code as follows
  • SAI__OK for success

  • ONE__LENGTHERR - Bad parameter length

  • ONE__PIPEERR - Pipe error

  • ONE__MALLOCERR - Malloc error