Package Details: bash-preexec 0.4.1-1

Git Clone URL: https://aur.archlinux.org/bash-preexec.git (read-only, click to copy)
Package Base: bash-preexec
Description: ⚡ preexec and precmd functions for Bash just like Zsh.
Upstream URL: https://github.com/rcaloras/bash-preexec
Licenses: MIT
Conflicts: bash-preexec-git
Provides: bash-preexec
Submitter: qbvt
Maintainer: qbvt
Last Packager: qbvt
Votes: 0
Popularity: 0.000000
First Submitted: 2020-10-12 10:12
Last Updated: 2020-10-12 10:12

Dependencies (1)

Sources (1)

Latest Comments

qbvt commented on 2021-09-27 20:57

Hello again kuba-orlik,

The first step to trying to solve this issue is to identify whether it is an issue with the AUR packaging process (in which case I can help), or if it's an issue with the upstream software (in which case the developer of bash-preexec may be able to help). I am only packaging this existing software for arch linux, not developing it. I'm sorry if this was unclear

Like I said in my other message over at undistract-me, I cannot reproduce the issue you are having, so you will need to figure this out on your machine. I can try to give you some pointer for the debug process.

I suggest you do the following to identify whether this is an AUR issue or an upstream issue:
1. Go over to the upstream repository (https://github.com/rcaloras/bash-preexec).
2. Download the code using git clone or with a direct download using the "code" button.
3. Try to run the tests as described at the bottom of the readme (at https://github.com/rcaloras/bash-preexec) 4. Report the results here.
4.a. If the tests fail, this indicate that the issue is with the upstream package or with your configuration. In that case, the best person to help is the developer of the program, rcaloras. You can ask for his help by opening an issue on the github repo for bash-preexec (https://github.com/rcaloras/bash-preexec).
4.b. If the tests pass, this indicates that the issue is with the AUR packaging process, in which case we can try to discuss more (although right now I have no diagnosis).

Best,

kuba-orlik commented on 2021-09-27 13:17

I'm getting this error during installation:

==> Starting check()...
 ✓ __bp_install_after_session_init should exit with 1 if we're not using bash
 ✗ __bp_install should exit if it's already installed
   (from function `bp_install' in file ./bash-preexec.bats, line 13,
    in test file ./bash-preexec.bats, line 32)
     `bp_install' failed
   /home/kuba/.cache/yay/bash-preexec/src/bash-preexec-0.4.1/test/./../bash-preexec.sh: line 73: HISTCONTROL: unbound variable
 ✗ __bp_install should remove trap logic and itself from PROMPT_COMMAND
   (in test file ./bash-preexec.bats, line 45)
     `eval "$PROMPT_COMMAND"' failed
   /home/kuba/.cache/yay/bash-preexec/src/bash-preexec-0.4.1/test/./../bash-preexec.sh: line 73: HISTCONTROL: unbound variable
 ✗ __bp_install should preserve an existing DEBUG trap
   (in test file ./bash-preexec.bats, line 52)
     `trap_invoked_count=0' failed
   /home/kuba/.cache/yay/bash-preexec/src/bash-preexec-0.4.1/test/./../bash-preexec.sh: line 73: HISTCONTROL: unbound variable
 ✓ __bp_sanitize_string should remove semicolons and trim space
 ✗ Appending to PROMPT_COMMAND should work after bp_install
   (from function `bp_install' in file ./bash-preexec.bats, line 13,
    in test file ./bash-preexec.bats, line 85)
     `bp_install' failed
   /home/kuba/.cache/yay/bash-preexec/src/bash-preexec-0.4.1/test/./../bash-preexec.sh: line 73: HISTCONTROL: unbound variable
 ✗ Appending or prepending to PROMPT_COMMAND should work after bp_install_after_session_init
   (in test file ./bash-preexec.bats, line 102)
     `}' failed
   /home/kuba/.cache/yay/bash-preexec/src/bash-preexec-0.4.1/test/./../bash-preexec.sh: line 73: HISTCONTROL: unbound variable
 ✗ Adding to PROMPT_COMMAND before and after initiating install
   (in test file ./bash-preexec.bats, line 115)
     `' failed
   after2
   before
   before2
   /home/kuba/.cache/yay/bash-preexec/src/bash-preexec-0.4.1/test/./../bash-preexec.sh: line 73: HISTCONTROL: unbound variable
 ✗ Adding to PROMPT_COMMAND after with semicolon
   (in test file ./bash-preexec.bats, line 126)
     `' failed
   before
   /home/kuba/.cache/yay/bash-preexec/src/bash-preexec-0.4.1/test/./../bash-preexec.sh: line 73: HISTCONTROL: unbound variable
 ✗ during install PROMPT_COMMAND and precmd functions should be executed each once
   (in test file ./bash-preexec.bats, line 143)
     `[ "${lines[3]}" == "inside precmd" ]' failed