idlastro / Miscellaneous (Non-Astronomy) Procedures: EXPAND_TILDE

[Source code]

NAME
EXPAND_TILDE()
PURPOSE
Expand tilde in UNIX directory names
CALLING SEQUENCE
IDL> output=expand_tilde(input)
INPUTS
INPUT = input file or directory name, scalar string
OUTPUT
Returns expanded filename, scalar string
EXAMPLES
output=expand_tilde('~zarro/test.doc')
        ---> output='/usr/users/zarro'
NOTES
This version of EXPAND_TILDE differs from the version in the Solar
Library in that it does not call the functions EXIST and IDL_RELEASE.
However, it should work identically.
PROCEDURE CALLS
None.
REVISION HISTORY
Version 1,  17-Feb-1997,  D M Zarro.  Written
Transfered from Solar Library   W. Landsman   Sep. 1997
Made more robust  D. Zarro/W. Landsman  Sep. 2000
Made even more robust (since things like ~zarro weren't being expanded)
Zarro (EITI/GSFC, Mar 2001)