Very strange indeed..

Both seem to use system() so I tried the following code:
#include <stdio.h>
#include <stdlib.h>

int main(){
  system("fish");
  printf("Exiting nao!\n");
}

But could not reproduce it in my simple C program.
Then I tried:

#!/usr/bin/env python
import os
os.system("fish")
print("Exiting nao")

But it wasnt reproducible there either, so in Python it only seems to
be the REPL that suffers from this.

Then I tried:
#!/usr/bin/env lua
os.execute("fish")
print("Exiting nao")

In LUA, not reproducible there either, only in REPL.

Which lead me to believe that it was read() that was the problem, so I
wrote the following python code:
#!/usr/bin/env python
import os
os.system("fish")
raw_input()
print("Exiting nao")

And it stops the job, so I would guess that its some escape sequence
sent by fish that read() does not like.


2011/6/8 Grissiom <[email protected]>:
> On Wed, Jun 8, 2011 at 2:00 PM, Maxim Gonchar <[email protected]> wrote:
>> Hi,
>>
>> There happens a strange problem, when I try to call fish from some program. 
>> For example lua:
>>> os.execute 'fish'
>>> exit
>> After the fish exits the lua process exits also. This does not happen to the 
>> other shells. I can call bash, dash or tcsh and exit back to lua.
>>
>> The same happens in python (os.system('fish')), vim (:!fish), mc, ranger 
>> (:shell fish).
>> This does not happen in another shells, i.e. if I start fish from bash, I 
>> exit to bash.
>>
>> This behavior is very annoying, Do anybody know how to deal with it or at 
>> least why does this happen?
>
> The parent process does not exit, but suspended on my box. Don't know
> the root cause though.... ;(
>
> --
> Cheers,
> Grissiom
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to