I have the following two lines of code in my init.el file:
(setq shell-file-name "bash")
(setq shell-command-switch "-ic")
I tried executing the following script to get a list of executables using the shell script dmenu_path.
(defun dmenu-path-out ()
(shell-command-to-string "dmenu_path"))
I see the following error:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[
0ad
...
How can I prevent bash from returning that error when using shell-command
?