3 ms·
Interesting - unfortunately displays typical llm issues in the demo video: > It's important to note that using `1<>` can lead to unexpected behavior if the fil
by e12e 2y ago
Interesting - unfortunately displays typical llm issues in the demo video:
> It's important to note that using `1<>` can lead to unexpected behavior if the file already exists, as it will be overwritten.
> To avoid this, you can use the `-a` option to append to the file instead of overwriting it. For example:
> `bash ls 1<> output.txt
> This will append the output of the `ls command the file `output.txt` if it already exists, or create the file if it doesn't.
Note that the example is wrong and not in line with the explanation.
Ed: AFAIK the closest thing that works would be:
ls >> output.txt
Not sure if there are any invocations using "1<> output.txt" that would make sense in this context? Maybe binding to a custom description like 3, and using "tee --append"?
- simonmysun 2y agoYou are right. I will replace the video. Actually the last time I record it wasn't this bad. And the script was kept and I didn't make much change when recording it again. Here's the first video I recorded for an earlier version: https://github.com/simonmysun/ell/blob/d4fc5468157fa6adc8f9f785c1c979238703d007/docs/demo.gif https://github.com/simonmysun/ell/blob/d4fc5468157fa6adc8f9f... Unfortunately, LLMs are not stable. For reference, here's the link to the video with mistake: https://github.com/user-attachments/assets/1355ad08-6fbf-4c0b-9ba6-2542fcb39acf https://github.com/user-attachments/assets/1355ad08-6fbf-4c0... https://github.com/simonmysun/ell/blob/553d38f60ad104893b2a32c160dd72f37f760c03/docs/demo-basic.webm https://github.com/simonmysun/ell/blob/553d38f60ad104893b2a3...