Can't change directory with shell(cd)

Michael D Mays michael.rr at mdmays.com
Thu May 1 23:04:04 EDT 2008


Yes you do if you have space and other evil MacOS filename  
characters. Sarah saw what I was doing wrong.

I wonder if each shell call is threaded separately.

Thanks,
Michael


On May 1, 2008, at 6:01 PM, Richard Gaskin wrote:

> Michael D Mays wrote:
>
>> I'm doing this
>>   answer folder ""
>>   put it into aPath
>>   put "cd "&aPath into aRequest
>>   put aRequest into fld 1
>>   put shell(aRequest) into fld 2
>>   put shell("ls") into fld 3
>> No matter which folder I chose, Rev's 'Home' folder is the  
>> directory  listed.
>> When I cut and paste fld 1 into the Terminal, ls works as expected.
>> What am I doing wrong or is this a 'feature';)?
>
> Does the path need to be in quotes? E.g.:
>
>     put "cd "&quote&aPath&quote into aRequest
>
>
> -- 
>  Richard Gaskin
>  Managing Editor, revJournal
>  _______________________________________________________
>  Rev tips, tutorials and more: http://www.revJournal.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list