Re: [9fans] Scripts in 9pm

2019-01-26 Thread Ethan Gardener
And then I found it's barely reasonable to run Windows batch files from 9pm rc. Despite rc using Windows path syntax, changes to $path made in rc don't get propagated to the batch file. Also, rc doesn't find batch files in the path. *And* I can't remember why I started trying to use 9pm! I

[9fans] Scripts in 9pm

2019-01-26 Thread Ethan Gardener
Not an important subject, I have other tools, but just in case anyone knows, how do you write scripts for 9pm? On Fri, Jan 25, 2019, at 11:11 PM, Ethan Gardener wrote: > 9pm rc is a bit > broken anyway. There doesn't seem to be a way to make an executable > script I set $path wrong, 9pm uses

[9fans] #! scripts

2009-04-09 Thread lucio
I'm messing around with /sys/src/9/port/sysproc.c and I may have distorted it beyond recovery, but I have a feeling this problem isn't of my own making. I have: ; cat /bin/ll #!/bin/ls -l ; If I invoke ll ; ll --rwxrwxr-x M 9 lucio lucio 13 Jan 31 09:30

Re: [9fans] #! scripts

2009-04-09 Thread Richard Miller
See exec(2): For a file beginning #!, the arguments passed to the program (/bin/rc in the example above) will be the name of the file being executed, any arguments on the #! line, the name of the file again, and finally the second and subsequent argu-

Re: [9fans] #! scripts

2009-04-09 Thread lucio
See exec(2): For a file beginning #!, the arguments passed to the program (/bin/rc in the example above) will be the name of the file being executed, any arguments on the #! line, the name of the file again, and finally the second and subsequent argu-