Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The way syncoid is built assumes Bash/POSIX shell #948

Open
crabdancing opened this issue Aug 27, 2024 · 2 comments
Open

The way syncoid is built assumes Bash/POSIX shell #948

crabdancing opened this issue Aug 27, 2024 · 2 comments

Comments

@crabdancing
Copy link

crabdancing commented Aug 27, 2024

syncoid -r root@mymachine:rpool/data rpool/mymachine-backup/data                                                                                                                         ❌2 2024-08-27 (Aug, Tue) 00:50:09
Error: nu::parser::unknown_flag

  × The `echo` command doesn't have flag `-n`.
   ╭─[source:1:7]
 1 │ echo -n
   ·       ┬
   ·       ╰── unknown flag
   ╰────
  help: Available flags: --help(-h). Use `--help` for more information.

CRITICAL ERROR: ssh connection echo test failed for root@mymachine with exit code 1 at /nix/store/y291afvmzdmff6r02qnhi3c6mcqpws6j-sanoid-2.2.0/bin/.syncoid-wrapped line 1714.

It is clearly getting confused here because the nushell 'echo' command does not have a -n flag. Ideally, syncoid would make explicit the kind of shell it wants (e.g., running ssh command with bash as a command).

@lckarssen
Copy link

lckarssen commented Aug 27, 2024

⚠️ Linking to "a fix" in this way looks rather suspicious. If this is a true fix @ESMELSTEPHANE24, please link to the code in a proper repository like GitHub, GitLab or other so that users here can inspect it before downloading stuff from random websites.
No longer relevant, the spam has been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@lckarssen @crabdancing and others