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 8730711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:04:48+00:00 2026-06-13T09:04:48+00:00

When I run below command on shell, it works properly. but if I write

  • 0

When I run below command on shell, it works properly. but if I write it in a Makefile and call it with “make” command it doesn’t work.

cp wpa_{cli,supplicant,passphrase,event} /usr/local/bin/

error after “make” command:

cp: cannot stat `wpa_{cli,supplicant,passphrase,event}’: No such file
or directory

What can i do to make it work with Makefile? I use Ubuntu 12.04. Same Makefile works on other linux distributions.

  • 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-13T09:04:49+00:00Added an answer on June 13, 2026 at 9:04 am

    Make uses old-school Bourne shell (/bin/sh) by default which does not support brace expansion. Set the SHELL variable in your makefile to /bin/bash if it’s not already set.

    Just add a line in the top of your makefile with:

    SHELL=/usr/bin/bash
    

    (please confirm your bash path).

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

Sidebar

Related Questions

When i run the command below: 127.0.0.1:8080/solr/suggest?spellcheck.build=true I got an exception as below, anyone
I run mvn install in command line and get stuck by below error. Caused
I'm trying to run the below-mentioned code in VB(Excel Macro) but I'm stuck with
The offending block of code is below. The code almost always works, but sometimes
I am using pexpect.run to execute a command. See below: cmd = grep -L
I have tried the following on the command line and they work, but when
I want to call shell commands (for example 'sleep' below) in parallel, report on
I get the below error when running a custom command from the yiic shell.
I am trying to run this shell script command through applescript on my mac
I am getting the below error below when I run my custom yiic command

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.