Re: "~" vs. "POSIX file"
Re: "~" vs. "POSIX file"
- Subject: Re: "~" vs. "POSIX file"
- From: email@hidden (Randal L. Schwartz)
- Date: 24 Oct 2006 13:24:51 -0700
>>>>> "Christopher" == Christopher Nebel <email@hidden> writes:
Christopher> I'd point out that other scripting languages, even ones that grew
Christopher> up on Unix, do not support that, and they don't support it
Christopher> because "~" isn't actually part of POSIX path syntax. For
Christopher> instance, in Perl you'd say
Christopher> "$ENV{'HOME'}/Desktop/some.text"
Only on some systems. On other systems, it's "$ENV{LOGDIR}". Fun fun fun.
However, (getpwuid $<)[7] will likely always be the same thing,
as will (glob "~")[0] in all modern version of Perl.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<email@hidden> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden