unixshellpath(
PATH
)

The unixshellpath( function converts a path and filename into a POSIX path that can be embedded within the shellscript statement.


Parameters

This function has one parameter:

path – path and filename to be converted. Can be either a standard UNIX path or an HFS path. If an HFS path is passed, it must be a full path, including the disk name - relative HFS paths are not allowed.


Description

This function converts a path and filename into a POSIX path that can be embedded within the shellscript statement. Special characters are not escaped with the backslash (\) character, if you need these characters to be escaped use the posixpath( function.

unixshellpath("~/Dropbox/Miscellaneous/*Important* Anthem Staff Change.pdf")
    ☞ /Users/tomswift/Dropbox/Miscellaneous/*Important* Anthem Staff Change.pdf
unixshellpath("External HD:Users:Shared:SheepShaver:Mac OS ROM")
    ☞ /Volumes/External HD/Users/Shared/SheepShaver/Mac OS ROM

Note: This function is equivalent to:

unixpath(thepath)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.