home *** CD-ROM | disk | FTP | other *** search
- 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
- From: okir@monad.swb.de (Olaf Kirch)
- Newsgroups: comp.os.linux
- Distribution: world
- Subject: FIX: UUCP, !, bash and smail
- References: <69XVTB1w165w@wefunk.rent.com>
- Message-ID: <9211102166@monad.swb.de>
- Organization: Little Hole in the Ground
- Date: Tue, 10 Nov 92 23:39:08
- Lines: 35
-
- ludwig@wefunk.rent.com (Mitchel F. Ludwig) writes:
- > When I use smail, the same type of thing happens, but instead of
- > dead.lettering the mail, I get an "undelevered" error, with the error
- >
- > Error executing
- > uux -aroot - bobsbox!rmail '(ludwig)'
- >
-
- I assume your problem lies with bash. Bash uses ! as its history
- character (typing !foobar recalls the last line beginning with
- foobar). You can either turn the whole thing off, or edit
- smail sources. But beware! I sat over this a whole hour.
-
- The story goes as follows:
- smail tries to execute something along the line of
- uux -r - smarthost!rmail '(host@domain!user)'
- which fails because of the two exclamation marks. The first can be
- escaped easily with \ - but the second is not so easy.
-
- When within quotes, bash still recognizes it as history character,
- but does not remove the backslash when it wsa escaped. Thus,
- uux -r - smarthost\!rmail '(host@domain\!user)'
- is executed as
- rmail host.domain\!user
- on smarthost and may cause problems. I think bash is a bit schizophrenic
- here. The solution is
- uux -r - smarthost\!rmail \(host@domain\!user\)
- This is not very beautiful, but it works.
-
- Hope this helps,
- Olaf
- --
- ---------------------------------------------------------------------------
- | Olaf Kirch Darmstadt | okir@monad.swb.de |
- ---------------------------------------------------------------------------
-