[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Is it possible to combine here-doc and pipeline?
From: |
Andy Chu |
Subject: |
Re: [Help-bash] Is it possible to combine here-doc and pipeline? |
Date: |
Thu, 27 Jul 2017 23:37:38 -0700 |
On Thu, Jul 27, 2017 at 6:21 PM, Chet Ramey <address@hidden> wrote:
> On 7/27/17 7:38 PM, Andy Chu wrote:
> > cat <<EOF |
> > what a wonderful world
> > EOF
> > sed 's/a/b/g'
> >
> > (Although for some reason this only works in batch mode rather than
> > interactively)
>
> It works fine interactively, at least as far back as bash-4.0 (that's
> when I quit testing).
>
Hm sorry for the false alarm. I couldn't get it to work interactively,
then tried saving it to a file and it worked. But I can't reproduce the
interactive bug now, so I probably messed up in some other way.
thanks,
Andy