Bug or feature? You be the judge.

Lawrence V. Cipriani lvc at tut.cis.ohio-state.edu
Mon May 2 22:18:54 AEST 1988


In article <8048 at elsie.UUCP> ado at elsie.UUCP (Arthur David Olson) writes:
>At least with the version we use, the ksh history mechanism is sensitive
>to leading space in commands:

>Some will say this is a bug; others will say that it provides a convenient
>way to "disguise" a command for historical purposes.  You be the judge.
>-- 
>	ado at ncifcrf.gov			ADO is a trademark of Ampex.

What's the point of this article?  You be the judge :-)

You can give a quoted string to r, eg:

	$ echo alphabet
	alphabet
	$  echo betabet
	betabet
	$ r ' echo'
	betabet
	$

This also works for the redirection operators:

	$ > ls.out ls	# same as ls > ls.out
	$ r >
	sh: syntax error: `newline or ;' unexpected
	$ r \>
	> ls.out ls
	$

-- 
Larry Cipriani, AT&T Network Systems and Ohio State University
Domain: lvc at tut.cis.ohio-state.edu
Path: ...!cbosgd!osu-cis!tut.cis.ohio-state.edu!lvc (weird but right)



More information about the Comp.unix.wizards mailing list