[BUG][SHELL] Could Others Please Test This OS X/Linux
Fraser Gordon
fraser.gordon at livecode.com
Wed Oct 1 04:47:27 EDT 2014
On 1 Oct 2014, at 04:17, Kay C Lan <lan.kc.macmail at 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
More information about the use-livecode
mailing list