home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16507 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.8 KB

  1. Path: sparky!uunet!UB.com!pacbell.com!sgiblab!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!ira.uka.de!smurf.sub.org!incom!orfeo!hotb.RoBIN.de!brewhq!monad!okir
  2. From: okir@monad.swb.de (Olaf Kirch)
  3. Newsgroups: comp.os.linux
  4. Distribution: world
  5. Subject: FIX: UUCP, !, bash and smail
  6. References: <69XVTB1w165w@wefunk.rent.com>
  7. Message-ID: <9211102166@monad.swb.de>
  8. Organization: Little Hole in the Ground
  9. Date: Tue, 10 Nov 92 23:39:08 
  10. Lines: 35
  11.  
  12. ludwig@wefunk.rent.com (Mitchel F. Ludwig) writes:
  13. > When I use smail, the same type of thing happens, but instead of
  14. > dead.lettering the mail, I get an "undelevered" error, with the error
  15. >    Error executing 
  16. >        uux -aroot - bobsbox!rmail '(ludwig)'
  17.  
  18. I assume your problem lies with bash. Bash uses ! as its history
  19. character (typing !foobar recalls the last line beginning with
  20. foobar). You can either turn the whole thing off, or edit
  21. smail sources. But beware! I sat over this a whole hour.
  22.  
  23. The story goes as follows:
  24. smail tries to execute something along the line of
  25.    uux -r - smarthost!rmail '(host@domain!user)'
  26. which fails because of the two exclamation marks. The first can be
  27. escaped easily with \ - but the second is not so easy.
  28.  
  29. When within quotes, bash still recognizes it as history character,
  30. but does not remove the backslash when it wsa escaped. Thus,
  31.    uux -r - smarthost\!rmail '(host@domain\!user)'
  32. is executed as
  33.    rmail host.domain\!user
  34. on smarthost and may cause problems. I think bash is a bit schizophrenic
  35. here. The solution is
  36.    uux -r - smarthost\!rmail \(host@domain\!user\)
  37. This is not very beautiful, but it works.
  38.  
  39. Hope this helps,
  40. Olaf
  41. -- 
  42. ---------------------------------------------------------------------------
  43. | Olaf Kirch          Darmstadt          | okir@monad.swb.de              |
  44. ---------------------------------------------------------------------------
  45.