Re: unable to escape ! in autotest stdout comparison text

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

 



On Tue, May 29, 2018 at 7:34 PM, Nick Bowler <nbowler@xxxxxxxxxx> wrote:

> On 2018-05-29, John Calcote <john.calcote@xxxxxxxxx> wrote:
> > I'm trying to create a test using autotest that compares the stdout of my
>


> So, we can do (totally untested)
>
> AT_INIT
> AT_SETUP([tg1])
> printf 'Hello from %s/src/prog!\n' "$abs_top_builddir" >expout
> AT_CHECK(["$abs_top_builddir/src/prog"],,[expout])
> AT_CLEANUP
>
>
Nick, your "totally untested" code works perfectly!

I'd actually thought of using expout, but was hoping for a more compact
solution. I think I've exhausted all the ways I've ever heard of
escaping/emasculating a bang in a command line. Was sort of hoping to find
some shell guru out there. The thing is, though, it's one of those
situations where the expansion functionality in autotest is just a little
less functional than the shell itself.

Thanks!
John
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux