On Fri, Apr 22, 2016 at 12:47:45AM -0400, Xu Wang wrote:
> Hi,
> 
> I would like to have a print command that takes input from the user.
> But mutt pipes the message to the print command so I guess I cannot
> use something like
> read -p "where to save?" filename
> 
> because read looks on STDIN and mutt already piped to STDIN.
> 
> I am using bash.
> 
> Any idea?
> 

exec 22< /dev/tty

read -u 22 -p "where to save" filename


-- 
Jon H. LaBadie                 j...@jgcomp.com
 11226 South Shore Rd.          (703) 787-0688 (H)
 Reston, VA  20190              (703) 935-6720 (C)

Reply via email to