| tbrowder | i hope my solution works. created an empty file with the desired name. then i used that file name for the .save method | 00:13 | |
|
00:21
arkiuat left
|
|||
| tbrowder | bummer, no go | 00:29 | |
|
01:31
annamalai left
01:57
sibl joined
|
|||
| disbot11 | <simon_sibl> so I need to run a program like cat to be able to do this ? | 02:01 | |
|
02:11
hulk joined
02:12
kylese left
|
|||
| [Coke] | no | 02:15 | |
| that example is passing your string *into* cat | 02:17 | ||
| so instead, pass it into the thing you want. | |||
|
02:53
annamalai joined
02:56
annamalai left
02:58
annamalai joined
03:15
hulk left,
kylese joined
03:51
sibl left
|
|||
| disbot11 | <simon_sibl> Oh yeah right sorry didn’t read well | 04:05 | |
| <simon_sibl> I was just wondering since it’s possible to pass a opened file to :in and :out if it’s possible to pass a scalar instead of a file handler when calling run/shell directly | 04:06 | ||
|
04:30
lichtkind__ joined
04:32
lichtkind_ left
|
|||
| Voldenet | I've checked - :in(IO::Handle) just binds stdins, :in(True) just create IO::Pipe, :in("-") just uses stdin, :in(Anything else) does nothing | 04:41 | |
| …am I reading it right? github.com/rakudo/rakudo/blob/c381...akumod#L47 | 04:42 | ||
|
05:43
kjp left
05:44
kjp joined
05:45
kjp left
05:46
kjp joined
|
|||
| disbot11 | <simon_sibl> idk but in the doc: docs.raku.org/routine/run | 06:06 | |
| <simon_sibl> they have this line: my $proc = run "ls", "-alt", :out($ls-alt-handle); | |||
| <simon_sibl> but its an opened file, | |||
|
06:18
wayland76 joined
|
|||
| Voldenet | this has more info on how to use :in docs.raku.org/type/Proc | 06:37 | |
| tbh. what you describe could be possible and not difficult to implement - the line I've posted would simply need to write the string to the stdin | 06:38 | ||
|
07:05
sibl joined
07:50
annamalai left
08:01
Aedil left
08:05
abraxxa joined
08:07
Aedil joined
08:56
Sgeo left
|
|||
| disbot11 | <simon_sibl> yeah I guess I will just go for the print | 09:07 | |
| <simon_sibl> I have a weird behavior with any module I try to install using Envy: termbin.com/xlcn | 09:08 | ||
| <simon_sibl> I am on Rakudo™ Star v2025.12. | |||
| <simon_sibl> I cant install any module | |||
| <simon_sibl> also I am not totally sure to understand the inst# and Envy# kind of path | 09:09 | ||
|
09:13
dakkar joined
|
|||
| disbot11 | <simon_sibl> I see the last commit was 4y ago, is there an alternative ? | 09:20 | |
|
10:20
sibl left
10:28
abraxxa left
11:32
abraxxa joined
11:50
annamalai joined
11:59
annamalai left
12:00
annamalai joined
13:09
annamalai left
|
|||
| tbrowder | if i use "run" to execute some command that creates an output file with just a base name, where will it exist on the local file system? | 13:29 | |
| lizmat | on whatever the OS thinks is the current directory | 13:46 | |
| tbrowder | ok, that's what i thought. i was confusing myself by keeping the output file name the same, duh | 13:53 | |
| on 2 diff tests | |||
|
13:59
abraxxa1 joined
14:01
abraxxa left
|
|||
| tbrowder | when i use "run" in a test on github, how can i direct where the output file will go? i have tried specifying a temp directory, ensuring perms are 0o777", and i get a failure msg about being unable to open the file or directory | 14:05 | |
| the same thing works in the temp dir on my local host | 14:06 | ||
|
14:08
annamalai joined
|
|||
| tbrowder | trying one more tweak... | 14:17 | |
| ah, chatgpt to the rescue...trick with the :out... | 14:24 | ||
| [Coke] doesn't know what envy is. | 14:25 | ||
| [Coke] reads up | 14:29 | ||
| tbrowder | well, getting close but no cigar... | 14:36 | |
| disbot11 | <antononcube> @Coke I think "Envy" is programming language for doing Number theory. | 14:47 | |
| <antononcube> Agh, well no, it is called "Sidef" and it is implemented in Perl... | 14:50 | ||
| [Coke] | envy is on raku.land - looks like a zef wrapper to manage install locations. | 14:52 | |
| by tony-o | 14:53 | ||
| tried to init a repo and install something to it, and it said it was already installed. | 14:55 | ||
| (init the repo, enable it, add the shim to zsh, zef install --to it... all candidates installed) | 14:57 | ||
| simon_sibl - it's telling you in the error message that you have to setup that repo in your LIB path for raku - with instructions for bash and zsh. | 15:08 | ||
| (did you then do it once in the current shell? ok) | 15:09 | ||
| Are you sure Event::Emitter works with just 'zef install <module>' ? | 15:10 | ||
| ugexe | i don't think :in("some string") is really ever going to work well given "-" is already a magic string | 15:12 | |
| Proc is also built on proc::async so i'm not sure even implementing a proof of concept would be easy or fit in the code well | 15:13 | ||