LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2021, 02:14 PM   #1
jan128
Member
 
Registered: Nov 2020
Posts: 201

Rep: Reputation: Disabled
Copy and Paste - make /qmake fails when Linux "paste" include ( ) in name


Copy and Paste - make /qmake fails when Linux "copy and paste" folder include " ( copy ) " in new folder name.

Example
"Current project "

became
"Current project ( copy )"

Is that a problem with Linux or application "make / makefile" file issue ?
 
Old 01-26-2021, 03:12 PM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
I'd say the problem is with the Makefile at hand. But almost nobody in the Linux world expects you to build software in folders whose names include spaces and/or parentheses.

Moreover, when you build with make, the general assumption is that you're using the command line, rather than creating folders via drag-n-drop or Copy/Paste functions of a GUI file manager.

Just rename the folder to something like Current_project.copy.

Last edited by shruggy; 01-26-2021 at 03:19 PM.
 
1 members found this post helpful.
Old 01-26-2021, 03:26 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by jan128 View Post
Copy and Paste - make /qmake fails when Linux "copy and paste" folder include " ( copy ) " in new folder name.

Example
"Current project "

became
"Current project ( copy )"

Is that a problem with Linux or application "make / makefile" file issue ?
Difficult to tell based on this information.

Please post the error which you receive, as well as the command you've entered.
 
Old 01-26-2021, 05:22 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Technically, the only characters that can not be in a filename are the forward slash / and a NULL character. However, other special characters including spaces , < > | \ : ( ) & ; ? and * while allowed can be problematic. In the case of () they must be enclosed with single quotes.

As stated not enough information but yes based on your post it is a linux "problem" and not specific to make.
 
1 members found this post helpful.
Old 01-30-2021, 05:01 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by michaelk View Post
Technically, the only characters that can not be in a filename are the forward slash / and a NULL character. However, other special characters including spaces , < > | \ : ( ) & ; ? and * while allowed can be problematic. In the case of () they must be enclosed with single quotes.

As stated not enough information but yes based on your post it is a linux "problem" and not specific to make.
Correct.

The problem is that shell expansion will remove a level of quoting - and make/qmake will use the shell, thus making any quoting of shell meta characters very difficult to get working with a GUI.
 
  


Reply

Tags
linux, make, makefile



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Preventing the screen copy and paste error on first paste slackartist Slackware 0 04-03-2016 06:48 PM
Want to change how pasted files are named "(copy)," "(another copy)," "(3rd copy)" L a r r y Linux - Desktop 3 08-24-2013 03:39 PM
Can tar accept an "include file" (as opposed to an include pattern)? digitalformula Linux - Newbie 1 01-24-2013 09:18 AM
How do i "copy" one bios and "paste" it onto another identical machine Yerp Linux - Hardware 2 01-10-2007 08:31 PM
Can someone please send me a copy of their qmake.conf file? uman Linux - Software 0 01-04-2005 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration