C Shell history, backprimes Q's -- Noddy Level

Chris Torek chris at mimsy.UUCP
Thu Apr 6 17:24:17 AEST 1989


In article <4930001 at hpopd.HP.COM> ian at hpopd.HP.COM (Ian Watson) writes:
>... so I can't seem to get the substitute to recognise
>'o b', as this spans words.

Correct.  The C shell cannot substitute across words; its substition
code works on individual works, not on groups thereof, nor on strings
(except insofar as the words are strings).

>Also, why does
>
>echo `man ps`
>
>give
>
>Missing ].

The manual for `ps' includes at least one unclosed `[' character
(probably as part of an underline or standout ESC-[ sequence), and
the C shell is trying to do file name globbing.  To prevent the
globbing, use

	set noglobl

or

	echo "`man ps`"

(the latter affects spacing as well).  Neither preserves newlines
(unlike sh).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list