[Cialug] shell escaping with command substitution?

Tim Wilson tim_linux at wilson-home.com
Mon Feb 9 22:48:07 CST 2015


Not really substitution, but how about this:
./testpgm | xargs cat


On Mon, Feb 9, 2015 at 9:55 PM, Kenneth Younger <kyounger at gmail.com> wrote:

> Hm. That seems at least not to error! But it then only echoes the names of
> the files, whilst quoted.
>
> ~/test ❯❯❯ cat <(./testpgm)
> '/Users/kenny/test/test 3.txt'
> '/Users/kenny/test/test1.txt'
> '/Users/kenny/test/test2.txt'
>
> On Mon, Feb 9, 2015 at 9:47 PM, Ron Houk <houk.ron at gmail.com> wrote:
>
> > My shell is weak but would process redirection help. E.g.
> >
> > cat <(./testpgm)
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> >
> > --
> > Kenneth Younger III
> > Founder, Sheer Focus Inc.
> > e: kenny at sheerfocus.com
> > p: (515) 367-0001
> > t: @kenny <http://twitter.com/kenny>
> >  <http://cialug.org/mailman/listinfo/cialug>
> >
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>



-- 
Tim
Required reading: http://bccplease.com/


More information about the Cialug mailing list