Re: [Factor-talk] She-bang

2020-04-20 Thread Alexander Ilin
Thanks for the quick reply! I think it should be in the docs, but either it's 
self-evident and not worth mentioning, or I failed to find it.
I was searching around the command-line parameters (-e, -run, etc.)

21.04.2020, 02:15, "John Benediktsson" :
> Yes, if you put a she-bang at the top you can just run it.
>
> $ cat hello
> #!/path/to/factor
> USE: io ;
> “HELLO WORLD” print
>
> $ ./hello
>
>>  On Apr 20, 2020, at 4:10 PM, Alexander Ilin  wrote:
>>
>>  Hey, guys!
>>
>>   I could not find this in the help. Does Factor support she-bang style 
>> scripts?
>>
>>  ---=---
>>  Александр
>>
>>  ___
>>  Factor-talk mailing list
>>  Factor-talk@lists.sourceforge.net
>>  https://lists.sourceforge.net/lists/listinfo/factor-talk
>
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk

---=--- 
 Александр



___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] She-bang

2020-04-20 Thread John Benediktsson
Yes, if you put a she-bang at the top you can just run it. 

$ cat hello
#!/path/to/factor
USE: io ;
“HELLO WORLD” print

$ ./hello


> On Apr 20, 2020, at 4:10 PM, Alexander Ilin  wrote:
> 
> Hey, guys!
> 
>  I could not find this in the help. Does Factor support she-bang style 
> scripts?
> 
> ---=--- 
> Александр
> 
> 
> 
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] She-bang

2020-04-20 Thread Alexander Ilin
Hey, guys!

  I could not find this in the help. Does Factor support she-bang style scripts?

---=--- 
 Александр



___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk