[Solved] Alert <-> notify-send confusion

There’s something weird going on…

In Terminal, using the command “alert” apparently executes “notify-send”. “alert” doesn’t accept the usual options. Trying “-v” reveals:

$> alert -v
notify-send 0.8.1

When checking /bin/alert, it correctly says it comes from the Haiku HPKG.
/bin/notify-send comes from the libnotify HPKG needed by LibreWolf.

Scripts using the “alert” command work as ever, but using it in Terminal doesn’t. Any ideas?

What does “command -v alert” print?

Thanks for the hint, I wasn’t aware of the “command” command!

Turns out, it’s an alias of “oh-my-bash”. Commented out that line in its bourne-shell.sh file, and my native alert is back.
Apparently I haven’t used “alert” since installing “oh-my-bash” over a year ago. Though, after all, I only use “alert” in a few scripts where it still worked, of course.

Anyhoo, thanks for the hint!

2 Likes