#1314: open opcode returns true instead of returning an exception
----------------------+-----------------------------------------------------
 Reporter:  dukeleto  |       Owner:       
     Type:  bug       |      Status:  new  
 Priority:  major     |   Milestone:       
Component:  core      |     Version:  1.8.0
 Severity:  high      |    Keywords:       
     Lang:            |       Patch:       
 Platform:            |  
----------------------+-----------------------------------------------------

Comment(by NotFound):

 An exception in open is only expected for exceptional conditions, like
 being unable to create a handle, and in the pipe's case being unable to
 fork or to launch a process, for example.

 The pipe ask the operating system to do some work. That work can fail at
 some later point. get_bool on FileHandle objects don't check error
 conditions, just check if the object already is in error state.

 Current pipe implementation just launch a shell, the shell can start
 without problem even if the program you ask it to execute does not exist,
 it takes some time to search the PATH and such. Waiting for stablization
 or something in open or in get_bool will compromise the possible
 implementations, probalbly slowing them down.

 So, I don't think this is a bug, just wrong expectations.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1314#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to