$PWD should start at the current working directory, and that is not the same if 
you run the command in the terminal or if you runit from your program. You will 
(and should) get different answers. Even if you run in the IDE compared to a 
standalone. 

If you want the home catalog you can use $HOME or ~. If you still get different 
answers it is of course a bug. Will test when I get to my computer. 

Skickat från min iPhone

> 1 okt 2014 kl. 10:47 skrev Fraser Gordon <fraser.gor...@livecode.com>:
> 
> 
>> On 1 Oct 2014, at 04:17, Kay C Lan <lan.kc.macm...@gmail.com> wrote:
>> 
>> Terminal enter the following:
>> 
>> find $PWD
>> 
>> The output will be on each line the full path of either a Folder or a file.
>> 
>> I just copied and pasted the output into a Text editor which then
>> reports the number of lines - in my case it's 527579
>> 
>> Next, in LC in the msg box
>> 
>> put shell("find $PWD") into tStore
>> --put tStore & cr into msg
>> put the number of lines of tStore after msg
>> 
>> In my case the output is: 17794.
>> 
>> Obviously this is a big difference. If you want to check the actual
>> output you can uncomment the line that will put tStore into msg, but
>> at this stage I only wish to confirm that the number of lines
>> (Folders/files) outputed is different.
> 
> Out of interest - are you setting the defaultFolder before running this? Try 
> running ‘put shell(“echo $PWD”)’ and make sure it is definitely running in 
> your user folder and not /Applications (on OSX, the defaultFolder is 
> initially /Applications).
> 
> Regards,
> Fraser
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to