[comp.unix] Ban the bang!

peter@sugar.UUCP (Peter da Silva) (09/03/87)

Does anyone out there have any idea how to go about making csh use some
other character than bang (!) for command substitution. Uucp and csh
are uneasy partners...

	... seismo\!soma\!uhnix1\!sugar\!peter.
-- 
-- Peter da Silva `-_-' ...!seismo!soma!uhnix1!sugar!peter
--                  U   <--- not a copyrighted cartoon :->

usenet@mcdchg.UUCP (Usenet Admin) (09/09/87)

In response to Peter da Silva's query on how to use a different character
than "!" for csh history, the use of:
	set histchars=",^" 
or a variant thereof was submitted by:
	apratt@atari.uucp (Allan Pratt)
	"Andreas Buschmann" <buschman@infbsgr.uucp>
	matt@ODDJOB.UCHICAGO.EDU (Matt Crawford)
	generous@dgis.uucp (Curtis Generous)
	hamlin@afit-ab.arpa (Joe Hamlin)
	mlandau@bbn.com (Matt Landau)
	black@masscomp.UUCP (Sam Black)
	andrew@lemming.gwd.tek.com (Andrew Klossner)

Thanks to all, including those who sent in such a response after this
posting went out.  Unfortunately,
 From: peter@sugar.UUCP (Peter da Silva)

I've recieved three types of responses about my "ban the bang" query now:

> RTFM: use "set histchars=..."
(approximately aleph-null times)

Well, System V csh doesn't support this.

> Use a mailer that uses atsign addresses.
(approximately 10 times)

No thanks. usenet does not have sufficient central control for atsign
addresses to be reliable. In fact right now I'm isolated from mail
because some site nearby is playing with *its* mailer. I can receive,
but not send. Bang is here to stay, I'm afraid.

> Patch csh.
(once)

I may do this. Anybody know what to look for (other than '!', of course)?

I guess I've gotta get Microport to upgrade to 4.3 compatibility :->.
-- 
-- Peter da Silva `-_-' ...!seismo!soma!uhnix1!sugar!peter
--                 'U`  <-- Public domain wolf.

--------------------

I also received:

 From: gatech!rutgers!topaz.rutgers.edu!ron (Ron Natalie)
 Organization: Rutgers Univ., New Brunswick, N.J.

Just another reason for using a real shell.

-Ron
[I presume that Ron is talking about the Korn Shell, which also has
command history, command line editing, history editing, aliases, functions,
etc., etc.  -mod   :-) ]

--------------------

 From: gatech!hplabs!prls!jam@philabs.Philips.Com  (John A. Murphy)
 Organization: Philips Laboratories, Briarcliff Manor, NY

On our 4.3 system it can be changed easily.  Check your man page for csh.
Murf
-- 
Better things for better living through shell scripts.

John A. Murphy                          jam@philabs.uucp
[RTFM, eh?  -mod]
-- 
Ron Heiby usenet@mcdchg.UUCP	Moderator: comp.newprod & comp.unix

root@topaz.rutgers.edu (Charles Hedrick) (09/12/87)

There is a tradition of using ^ instead of ! in UUCP addresses.
Many of the sendmail rule sets will translate ^ to ! before sending
out that mail.  However if your shell doesn't support the ability
to change the !, probably your mailer doesn't either.