Our system: sparc SunOS 5.9 Mozart version:Mozart Engine 1.3.1 (20040616) -- binaries downloaded from mozart-web-site.

------------------------
I cut and paste the following example to the oz interactive shell.

declare Shell
   class Shell from Open.pipe Open.text
      meth init
Open.pipe,init(cmd:"sh" args:["-s"]) end meth cmd(Cmd) Open.text,putS(Cmd) end
      meth show
         case Open.text,getS($) of false then
            {Browse 'Shell has died.'} {self close}
         elseof S then {Browse S}
         end
      end
   end

declare S = {New Shell init}
{S cmd("ls -d /path/[A-Z][A-Z]/foo")}

---> {S show}repeatedly,   gives the expected result.

However,

local L in
{{New Open.pipe init(cmd:"ls" args:['-d' "/path/[A-Z][A-Z]/foo"])} read(list:L size:all)}
  {Browse L}
end

---> gives  "No such file or directory"

What did I do wrong ?
thanks
HP


_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to