so i have this function i found on the interent
(defun set-no-process-query-on-exit ()
(let ((proc (get-buffer-process (current-buffer))))
(when (processp proc)
(set-process-query-on-exit-flag proc nil))))
(add-hook 'term-exec-hook 'set-no-process-query-on-exit)
it works great by disabling confirmation when you close a terminal. it works on multi-term, ansi-term, ehsell but for some bizzaro reason not on shell. any one knows why?