Score:0

Opening a file with "less" causes notify-send to send a message

ng flag

In my development environment, we have some helper scripts that wrap certain commands (like maven or docker), and then use notify-send to send a notification if the commands fail. After running a particular build that failed, every time that I open a file using less, that build failed notification pops up.

Any ideas what's going on there? (I realize I have no code/files to be able to show what my scripts look like, and no way to reproduce it, but any ideas would be appreciated)

Update based on comments:
type -a less shows less is /usr/bin/less
and
echo $LESS is empty.

waltinator avatar
it flag
Look at `type -a less` to see if it's an alias or a function. Look at `echo $LESS`, and read `man less`.
psycho9o avatar
ng flag
`type -a less` = `less is /usr/bin/less` `echo $LESS` = empty
waltinator avatar
it flag
Comments are designed for US to ask YOU questions about your Question. You should [Edit] your question to add information. By updating your Question, and using the formatting buttons, you make all the information available to new readers. People shouldn't have to read a long series of comments to get the whole story.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.