Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8337977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:27:14+00:00 2026-06-09T04:27:14+00:00

This is my code: echo $1 $2 if [ Release!=$2 -a Debug!={$2} ]; then

  • 0

This is my code:

    echo $1  $2
    if [ "Release"!="$2" -a "Debug"!="{$2}" ]; then
        echo "error! the arg of -c must be \"Release\" or \"Debug\" !"
        exit 1
    fi
    XCODECONFIG="$2";

when I input

    ./build.sh a Release

the output is:

    a Release
    error! the arg of -c must be "Release" or "Debug" !

it prints “error! the arg of -c must be “Release” or “Debug” !” why doesn’t go on to XCODECONFIG=”$2″?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:27:17+00:00Added an answer on June 9, 2026 at 4:27 am

    There must be spaces around !=:

    [ "Release" != "$2" -a "Debug" != "{$2}" ]
    

    When you write your expression without spaces, it is syntaticaly correct, but means other thing. It looks like:

    [ STR1 -a STR2 ]
    

    In your case, there are != inside, but that means nothing; that is anyway just strings; each string is evaluated as true, and True -a True will be also evaluated as true.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this code now echo $form->input('username'); How do I make sure the label
I have this code: $serialized = $_POST['cartSer']; echo $serialized; Which prints this: a:1:{s:15:\test\;s:3:\999\;} I
consider this simple code: echo iconv('UTF-8', 'ASCII//TRANSLIT', 'è'); it prints `e instead of just
I've got this code designed to echo a list of people from a specific
PHP code: echo date(c); //out put like this 2012-06-19T20:37:44+05:30 echo date(d M, Y); //out
I have this code in my view: echo form_label('State', 'state'); $options = array( 'No
This code... #!/bin/bash cond=10; for i in {1..$cond} do echo hello; done ...just drives
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
In this code : $path = C:\NucServ\www\vv\static\arrays\news.php; $fp = fopen($path, w); if(fwrite($fp=fopen($path,w),$text)) { echo
I have applied this code for iframe id. <iframe id='<?php echo 'fraDisabled'.$i.$post->ID; ?>' src='<?php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.