-
-
Notifications
You must be signed in to change notification settings - Fork 84
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. |
I had the same problem and this thread helped me solve it! So I did some more digging around and I hope we can get this issue closed. I am using a machine with
and this saved my day!
Here is the machine's default
I debugged the issue by creating a custom inputrc file, e.g.
I narrowed down the problematic line to
Commenting it fixes the issue I had and which I think made the OP @Anyborr file this issue. Let me know @akinomyoga and @mcepl if I can help you debug this further. |
Thank you for the information. Which problem are you talking about? Multiple issues are discussed in this thread, so I'm not sure which problem the provided information is relevant to. Is it the issue of the error message related to
Do you have any other settings in |
To quote the op, this issue we both had is
I did not have I completely removed my
and the issue is still there if
is present in From my understanding /etc/profile
|
Could you test your $ INPUTRC=~/.inputrc bash --noprofile --rcfile ~/.local/share/blesh/ble.sh Edit: Before testing the above, please back up your |
I can not reproduce here ... terminal is a real XTerm TERM variable is set to xterm-256color, locale LANG=C.UTF-8 and LC_CTYPE=de_DE.UTF-8 ... it simply works with Leap 15.4 and OpenSUSE Slowroll. Even ssh from the Leap based work station to the Slowroll works. Please make sure that the input.key is uptodate means that the 8bit controls are disabled openSUSE/aaa_base#84 |
@bitstreamout Thank you for your input! So, has anyone reported this issue to openSUSE? If so, I'd appreciate it if you could share the pointer to the discussion. Also, there is information that I got from the observation in the @Migelo's report but I didn't explicitly write here.
What is "Leap 15.4"? Based on my guess from the search result, is it a version of openSUSE? As I've already written in #424 (comment) and #424 (comment), the issue seems to be present only in SUSE Enterprise Linux Server (SLES). While no openSUSE users report this issue, three users @Anyborr @swahpy @Migelo reported the issue for SLES 15. It shouldn't be just because there would be no ble.sh users in openSUSE. Based on the issues I received so far, openSUSE is far more popular than SLES among the ble.sh users, yet no openSUSE users report this issue. The content of @bitstreamout Then, a question is: To what versions of openSUSE and SLES was aaa_base#84 applied? From the reports so far, it seems to have been applied to openSUSE Leap 15.4 but hasn't been applied to SLES 15.3. How about openSUSE Leap 15.3? How about SLES 15.4? |
Leap 15.4 is an openSUSE clone from SLE-14-SP4 with some extensions where as Slowroll is the slow rolling release of Tumbleweed. Currently actual is Leap 15.6 (and 15.5 is still gets updates) and for SLES we still have SLE-15-SP5 as well as the new SLE-15-SP6 ... also the question rises if all updates are applied ... at least this one:
visible with |
Thank you for the information. So, Leap is actually downstream of SLES. Then, we can guess SLES 15.3 and openSUSE Leap 15.3 have the old @bitstreamout Do you think there is a possibility of backporting the fixed @Migelo Which version of Bash does your system have? If possible, could you install the latest version of Bash in the system using a tarball or any other ways and test if the problem is worked around? |
I use atuin for bash history, so no problem :) Thanks for the concern. I again moved my I then started a shell and ran your command
which broke my prompt, with a
This was with the full content of
File contents below. /etc/inputrc.keys
My bash version is
So I downloaded
worked.
and it broke my shell. I get the same errors as with the old bash versions. To wrap this message up, I went and re-tested my claim above that with
and it turns out I was wrong in my message above. What breaks it is
EDIT: Something interesting is happening with an empty
it breaks it in the same way I described above. EDIT2:
but fails with
EDIT3:
in fact, any lines written in this style My working patched setup is:
Beware! I had to specify the absolute path and not rely on |
In principle yes but my old Leap (which I should update yes) isn't a clean Leap 15.4 as well. The tcsh, bash, mutt, ... and many others are updated as I test the packages I maintain on my self 😉
Principal yes ... ist should be noted that the bash and the libreadline are different packages and the bash on OpenSUSE as well on SLES uses the shared readline library from libreadline. Also the package aaa_base (which includes not only
What really rankles me is that the SLE-15-SP3 had already an update for this as I see from the changelog of the package aaa_base as seen in my comment #424 (comment) and this was at 2021 ... and in this change the commit
|
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: