Sample Header Ad - 728x90

How does dmenu_run work?

0 votes
2 answers
2343 views
My system is
9.4
which uses
kernel 4.9.0-8-amd64
and
$SHELL
on my system gives
/bin/bash
and
/bin/sh
is a link to
/bin/dash
. I was curious why every time I run an application with
from
there is an additional
/bin/bash
process that runs as the parent, so I dug further into the script of
: #!/bin/sh dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & I can't understand why my computer has
/bin/bash
instead of
/bin/sh
. I also read the correspond source code in
. It shows that it just simply
and
. There is no reason for
/bin/bash
to run instead of
/bin/sh
.
Asked by JiaHao Xu (248 rep)
Nov 10, 2018, 08:22 AM
Last activity: Aug 8, 2025, 07:10 PM