Re: sh: 1: /media/mycomputer/Seagate: not found

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

I'm not aware of any shell script being created by Phix, it just writes the file then invokes system_exec() on it.

Then, where does the sh: 1: come from?

One way to know if bash shell is involved is to do a ${?} immediately after the failure. If you get the same error repeated, it happened in a shell script. (You enter all 4 characters, the dollar sign shown above is not the prompt)

Anyway, here's another puzzle for you:

? system_exec("ls ",0) 
puts(1,"done\n") 
while 1 do end while 

When run by Euphoria, this lists the files in the current directory, then prints a 0, followed by "done", and waits for a ctl-c

When run by Phix, this does nothing at all, just waits for a ctl-c and returns to the prompt. No file listing, no "done".

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu