Can't change directory with shell(cd)

Richard Gaskin ambassador at fourthworld.com
Thu May 1 19:01:24 EDT 2008


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



More information about the use-livecode mailing list