On 2021-10-17 19:40:19 -0500, Oskari Pirhonen wrote: > I had mistakenly assumed which(1) was in coreutils, which would be fine > for reasonably portable scripts.
Note that under Debian/unstable, /usr/bin/which now gives a warning: /usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead. > Thanks for the tips. Updated script, just for the record: > > ``` > #! /bin/bash > > mutt "$@" && clear > ``` If you're using "clear" for privacy reasons and your terminal happens to have an alternate screen, note that "clear" will *not* clear the alternate screen. For instance, with xterm, after quitting Mutt, you can do a Ctrl-MiddleClick, then click on "Show Alternate Screen", and this reveals Mutt's contents just before Mutt has quit. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)