Skip to content

brush doesn't seem to implement kill with a numeric signal argument #1206

Description

@jmquigs

brush version

brush 0.4.0 (git:d42bdd2)

bash version (for comparison)

GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)

Platform / OS

Linux

Steps to reproduce

Under brush just run kill with any numeric argument for the signal on a pid you own, it will display an error.

~$ bash
~$ ps
    PID TTY          TIME CMD
  62862 pts/5    00:00:00 bash
  62889 pts/5    00:00:00 bash
  62901 pts/5    00:00:00 ps
~$ kill -9 62889
Killed
~$ brush
~$ ps
    PID TTY          TIME CMD
  62862 pts/5    00:00:00 bash
  62922 pts/5    00:00:00 brush
  62955 pts/5    00:00:00 ps
~$ kill -9 62922
kill: invalid signal name

Actual behavior (brush)

kill: invalid signal name

FWIW it also didn't kill the process as I expected it would

Expected behavior

Should translate the numeric argument name into the proper signal and send it

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compatRelated to compatibility with standard shellsbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions