help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] prepend to stdin


From: Greg Wooledge
Subject: Re: [Help-bash] prepend to stdin
Date: Tue, 22 Dec 2015 17:03:34 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Dec 22, 2015 at 03:55:15PM -0600, Brett Kail wrote:
> On Tue, Dec 22, 2015 at 2:27 PM, Greg Wooledge <address@hidden> wrote:
> 
> > The - argument to cat means read stdin.  If you executed this command
> > in an environment where stdin is a terminal, it's waiting for you to type
> > a line of input on the terminal.
> >
> 
> Yes, you're right, I'm using a terminal.  Sorry, I should have asked: what
> is causing cat to wait for an entire line,

The fact that stdin is a terminal.

> and is there a way to change
> that?

Send stdin from somewhere else, like a pipeline or a file.

> I better understand now how pipelines work, so I appreciate the
> answer won't help with my broader question since at least one character
> will need to be read/written in order for SIGPIPE to terminate the cat
> process, but I'm still curious.

Huh?  What are you talking about?

Show the script, and how it is actually being used.



reply via email to

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