This is the old SliTaz forum - Please use the main forum.slitaz.org

Passing an argument to ./configure
  • slitazmslitazm January 2011
    I need to pass an argument to ./configure that would normally be interactive on the command line. e.g.  ./configure --disable-spell.  Is there a way to do that within the receipt?  My tazwok cook is failing because I do not know how to either set it hard-coded in the ./configure or how to use the taz utilities to pass the argument through.

    I apologize if the answer is one of those 'you should know that'.

    Thanks,

    M
  • GokhlayehGokhlayeh January 2011
    Most of the time you can answer to a question in script using echo, like:
    <code>echo y | tazpkg remove X</code>
    A test case using a simple function:
    <code>$  taz(){ read a; [ "$a" = yo ] && echo "Babylon shall fall!"; }
    $ echo ya | taz # No answer
    $ echo yo | taz
    > Babylon shall fall!</code>

    It have its limits: if you have to answer to several questions, I hope you want to answer the same thing for all :D... but you said **an* argument, right ?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social