Darryl Burke wrote:I don't use a Mac (never even seen one up close) but can you Runtime#exec(...) ls -l and capture the output? And is the first character of that output 'l' (lowercase ell) for an alias, as it is for a symbolic link in Unix?
Bd Howard wrote:I was just messing around in Terminal using the ls command, and it seems that an alias lists what it is pointing to (at least in terms of the file size) without any telltale flags that identify it as an alias. Symbolic links on the other hand are easy to see and differentiate. Come to think of it, the issue I've described above may be because of a symbolic link instead of an alias.
Bear Bibeault wrote:Yes, they are different. Here's a capture from an ls -l command that shows three different types:
The first is a symbolic link, the second a folder, the third an Alias to that folder.
Bd Howard wrote:I don't claim to be any type of expert on this, (or anything else for that matter), but it is my understanding that they are similar, but different. At least how the Mac handles them is different.
Anyway, you did say you've never seen a Mac up close.
Bd Howard wrote:Perhaps we can turn him to the Dark Side. :-)