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

fish shell无法使用,报错Segments not match: expect 12, got 1 #195

Closed
seawave0564 opened this issue Oct 23, 2023 · 12 comments
Closed

Comments

@seawave0564
Copy link

bash正常,切换默认shell后会导致此问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


bash is normal, but switching the default shell will cause this problem

@lollipopkit
Copy link
Owner

我这里测试没有问题

image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


There is no problem in my test here

image

@lijingbonb
Copy link

我也是这个报错,但是不是切换默认shell后会导致此问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I also get this error, but it is not caused by switching the default shell.

@lollipopkit
Copy link
Owner

麻烦点击主界面右上角按钮,截图log

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please click the button in the upper right corner of the main interface to take a screenshot of the log.

@lijingbonb
Copy link

如果是android,麻烦测试
https://res.lolli.tech/serverbox/ee6cf7cc404ee3e209c622dfdbd6b0b48c3e37701b467d90607056cf71d53fce

是电脑的,现在他自己好了

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If it is android, please test it
https://res.lolli.tech/serverbox/ee6cf7cc404ee3e209c622dfdbd6b0b48c3e37701b467d90607056cf71d53fce

It's from the computer, and now he's fine on his own

Repository owner deleted a comment from Issues-translate-bot Oct 30, 2023
lollipopkit added a commit that referenced this issue Oct 30, 2023
- fix: debug provider color
- fix: can't write script through SFTP (#195)
- opt.: go next refresh only after current refresh task is done
@lollipopkit
Copy link
Owner

那先关闭了,如果更新至616或以上仍有问题,请再次开启

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Then turn it off first. If you still have problems after updating to 616 or above, please turn it on again.

@horror-proton
Copy link

horror-proton commented Jan 27, 2024

This message also occurs in v1.0.707(+1),
log says something like

[App][Warning]
Write script to xxxx by shell: Exception:
fish: Expected a string, but found a redirection
cat << 'EOF' > $HOME/.config/server_box/mobile_v34.sh
     ^

[App][Warning]
Exception: sftp sworker event:
SftpStatusError: No such file(code 2)

I ran execsnoop in that server, and saw output like

fish             578     576       0 /usr/bin/fish -c mkdir -p $HOME/.config/server_box\ncat << 'EOF' > $HOME/.config/server_box/mobile_v34.sh\n#!/bin/sh\n# Script for ServerBox app v1.

while fish does not support syntax like << I guess.

It seems that this command is not executed with sh as expected?

/// Issue #168
/// Use `sh` for compatibility

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

5 participants