-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
[SUSE /etc/inputrc] issues sourcing ble.sh #424
Comments
Thanks for the report. I'm always using ssh, but it doesn't reproduce in my environment, and I've never experienced the behavior.
$ bash /path/to/ble.sh --clear-cache
|
Some additional info: Q1: Clearing the cache does not affect the behavior. Q2: The machine i SSH from is using WSL2 with the default terminal app and $BASHVERSION 5.1.16(1)-release, but the issue appears also when I SSH from a terminal on a linux SUSE machine. The target machines are using linux SUSE, the computational cluster Im not sure which flavor of linux they run. Q3: The When sourcing the ble.sh script on one of the problematic machines the write prompt gets filled with the character string |
Sorry for the delay in the answer. I didn't have an idea what is happening, and also I was busy. Today, a possibility of broken |
# bashrc
source /path/to/ble.sh [other options if any...] --inputrc=none Please replace |
Hi, no worries, I've also been quite busy with work. testing your suggestion in Q4 unfortunately did not produce a different result. Best, |
Thank you for your patience! Hmm, then,
$ ble-import core-debug
$ ble/debug/keylog#start
$ [A[C[B[D[... # <-- Could you press cursor keys here to replicate the problem?
$ ble/debug/keylog#end
# <-- what is the output here? I'd like to check the state of
$ builtin bind -spX > dump-bind.txt You can copy the generated file |
Q5:
Q6 |
Thank you for those results! With a cursor key, ble.sh is supposed to receive a byte sequence in the form
$ bash # <-- start a child session (#1)
$ source /path/to/ble.sh
$ # <-- check the behavior
$ exit # <-- end the child session #1
$ INPUTRC=/dev/null bash # <-- start another child session (#2) with INPUTRC=/dev/null
$ source /path/to/ble.sh
$ # <-- check the behavior
$ exit # <-- end the child session #2 |
OK, I could reproduce the problem with an old |
Q7: sourcing blesh within I'll test around a bit in the coming weeks and if I encounter any other problems that seems unique to the machines where i observed the issues ill add them to this thread (or if prudent, open a new issue). Thanks for taking the time with this issue. Best, |
Thanks for checking!
This is a separate issue. I'll fix it. |
I tried to add a workaround, but I realized that the problem doesn't arise in my environment in the case where the workaround can be implemented.
I seem to be able to reproduce the problem only when I source
I took a look into this issue, and I found the issue happens when the internal API
|
Q8: Same as for your investigation the issues appear again when sourcing Q9: I don't have any additional settings for ble.sh. The configuration is "out of the box" so to say. |
Thank you for your answers.
Then, the situation seems slightly different in my environment.
Hmm,
# bashrc
source /path/to/ble.sh --norc --inputrc=none |
Maybe I was a bit unclear about this. I would like to know the results when you have only the ble.sh settings in your
|
Do you have any updates on this issue about the error message related to
For the original issue of the key inputs, maybe you have some settings of I've checked the source code of Bash. It seems to be possible to suppress loading |
hi I have the same issue here about |
@swahpy Thanks. Maybe I should check the trace log. Could you make a file # test.bashrc
HISTFILE=~/blesh-github424.history
bleopt_debug_xtrace=~/blesh-github424.txt
source out/ble.sh --norc Then, could you start a Bash session with this bashrc and see if the error message reproduce? $ bash --rcfile test.bashrc
# <-- please see if the error message reproduces
$ exit # <-- please exit immediately If the error message is reproduced, could you provide the file created at After testing, you can remove the files |
hi akinomyoga, apologize for late reply. I tested according to your suggestions and attached |
Thank you for the log. I checked it, but I couldn't find a suspicious command. I think the error is caused outside the section that is not logged. I'll later ask you to try another |
BTW, just to let myself be known: I am openSUSE user myself (actually MicroOS, but those are the same Tumbleweed packages), and I don’t observe anything weird like that. I use ble.sh on my main system directly, without SSH. |
Multiple issues are discussed in this issue. I'm not sure which one you are talking about, but the original problem seemed to have been specific to SUSE but not present in openSUSE. I tested the behavior in openSUSE Tumbleweed then, but I couldn't reproduce the problem. There seem to be many ble.sh users who use openSUSE, but they don't seem to report this problem. This issue is somehow only reported by the users of SUSE Linux Enterprise. |
@swahpy @Anyborr Sorry for the late reply, but if you are still available and seeing the same issue of @swahpy Also, could you provide the result of the following command? $ ble/widget/display-shell-version @swahpy @Anyborr Also, what are the results of the following commands? $ echo "$SHELLOPTS"
$ echo "$BASHOPTS" |
Interesting, I am actually an employee of SUSE, so if there is a bug in our enterprise server, there are some of my colleagues whom I may let know. |
GNU bash, version 4.4.23(1)-release (x86_64-suse-linux) [SUSE Linux Enterprise Server 15]
ble.sh, version 0.4.0-devel4+b6344b3b (noarch) [git 2.35.3, GNU Make 4.2.1, GNU Awk 4.2.1, API: 2.0]
bash-completion, version 2.7 (hash:a379b3f832e4e804323eb4c21c12f799cc5a1987, 73857 bytes) (noarch)
locale: LANG=en_US.UTF-8
terminal: TERM=xterm-256color wcwidth=auto-auto/15.1-2+ri
After having SSH'd to a machine with ble.sh installed, sourcing the ble.sh script, either straight from the git directory or after installing the program, results in repeated messages of
-bash: syntax error near unexpected token
from most keypresses that are not letters A-Z or numbers. This also produces the blesh message at the top left of the terminalrecieved a misencoded char U+0000
and writes weird letters to the write-line in the terminal. Blesh works fine when sourcing from a native terminal on the target machine, but does not work properly when SSH'd into the machine.I've tried checking keymap variables are available via
localectl
and variables fromlocale
look good.For now i have to turn ble.sh off as my workflow requires me to routinely ssh into my work station.
Appreciate all help, thanks!
The text was updated successfully, but these errors were encountered: