-
Notifications
You must be signed in to change notification settings - Fork 2.1k
simple nu scripts return partial line #7959
Copy link
Copy link
Closed
Labels
A:external-commandsIssues related to external commandsIssues related to external commands
Description
Describe the bug
When I run a simple nu script from within bash, sh or zsh, it will return a partial line.
How to reproduce
Try to run an executable file from a zsh shell containing these lines:
#!/usr/bin/env nu
'test'
The output will be
test%
I believe the '%' is a way for zsh to indicate a partial line. In sh the output from the script is simply put on the same line as the next prompt.
Expected behavior
I expected nu to simply give the output
test
on its own separate line, ie include a newline character in its output.
Screenshots
No response
Configuration
| key | value |
|---|---|
| version | 0.74.0 |
| branch | |
| commit_hash | |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.66.0 (69f9c33d7 2022-12-12) (Arch Linux rust 1:1.66.0-1) |
| cargo_version | cargo 1.66.0 |
| pkg_version | 0.74.0 |
| build_time | 2023-01-12 11:46:18 +01:00 |
| build_rust_channel | release |
| features | database, dataframe, default, trash, which, zip |
| installed_plugins |
Additional context
The partial line / missing new line character problem causes nu scripts to malfunction in some contexts.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:external-commandsIssues related to external commandsIssues related to external commands