groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] What does 'groff <<<foo' do?


From: Steve Izma
Subject: Re: [Groff] What does 'groff <<<foo' do?
Date: Sun, 2 Dec 2012 14:24:11 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Dec 02, 2012 at 07:02:21PM -0000, Ted Harding wrote:
> To: Groff <address@hidden>
> Subject: Re: [Groff] What does  'groff <<<foo' do?
> 
> On 02-Dec-2012 18:40:11 Clarke Echols wrote:
> > In a recent email the syntax:
> > 
> >      groff <<<foo ...
> > 
> > was used.
> > 
> > I've used Unix/Linux for over 25 years, and I've never seen
> > that "triple redirect" before.  What does it do?  I get nowhere
> > with a Google search because it ignores the '<<<'.
> 
> It surprised me too! Never seen it before....
> 
> While everything else does what one naturally expects,
> 'cat <<<foo' or 'cat <<< foo' seems to be a way of passing
> what follows the "<<<" directly to the command, as if equivalent
> to "echo foo | cat".

I was confused too, but that's because I've always used the Korn
Shell (pdksh under linux). But "<<< word" is called a "Here
string" in the bash man page. It's also included in the Mir BSD
Korn Shell, which looks like it's going to be the universal
replacement for pdksh. The above "echo foo | ..." looks more
logical and consistent to me.

        -- Steve

-- 
Steve Izma
-
Home: 35 Locust St., Kitchener N2H 1W6    p:519-745-1313
Work: Wilfrid Laurier University Press    p:519-884-0710 ext. 6125
E-mail: address@hidden or address@hidden

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
<http://en.wikipedia.org/wiki/Posting_style>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]