Re: Passing calls to an AS app via shell?
Re: Passing calls to an AS app via shell?
- Subject: Re: Passing calls to an AS app via shell?
- From: Christopher Nebel <email@hidden>
- Date: Fri, 8 Oct 2004 14:39:14 -0700
On Oct 8, 2004, at 11:02 AM, Adam K. Wuellner wrote:
When using tab completion in Terminal.app, if the path contains
characters that must be quoted, the ~ gets converted to the actual
path to the user's home directory. However, if the path contains no
spaces, the ~ remains in the tab-completed path on the CL.* There
must be a reason for this, and I would guess it's also the reason that
you have to forego using the ~ in the same circumstances in AS's do
shell script.
* In case the explanation is unclear, try the following:
In your home folder, create two new folders. Name the first
"oneword", and the second "two words". Open Terminal, and type:
ls ~/onew
then press the tab key. If you have no other folders beginning with
"onew" your command line should now have
ls ~/oneword/
Press return to run the command or control-U to clear the line. Now,
type
ls ~/two
and press tab. If you have no other folders beginning with "two" your
command line should now have
ls /Users/username/two\ words/
Maybe someone else can explain why this happens.
Uh, because that's how sh(1) is written? Really, I don't know -- it
doesn't have to do this, but it does. csh(1) will leave the ~ alone in
both cases.
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden