[Bug] failed command expression is not sending output to variable
Đang mở
bug
compiler
enhancement
- Ngôn ngữ chính
- Rust
- Star
- 5.2k
- Fork
- 145
- Merge trung bình
- 5 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 7
Mô tả
The docs for [command-expressions](https://docs.amber-lang.com/basic_syntax/commands) say:
"Command expression result is sent to the variable instead of standard output."
This is not true, by running the following code
```ab
let result = $cat not_existent.txt$ failed {
echo "Failed to read the file"
}
echo "---"
echo result
```
You can see that the message is actually sent to standard output and is not saved in the result variable.
Is this an error in the amber language or an error in the docs?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.