LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-17-2009, 11:14 AM   #1
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Rep: Reputation: 29
is an apostrophe a protected character in linux filesystems?


i found http://academic.wsc.edu/faculty/jebauer1/linux.html which explains reserved characters can't be used in names (such as * and ?) but i did not find an explicit list of reserved characters. I searched google for that, as opposed to invalid characters, and got roughly the same hits, that didnt seem to give more info.

The reson for this, is im trying to run wine from a terminal, because i cant get civilization 4 to run and am looking for any error codes. But when i try to path to it, this is where i get to

Code:
david@david-laptop:~$ cd .wine/drive_c
david@david-laptop:~/.wine/drive_c$ dir

Cavedog  Install_Messenger.exe	Program\ Files	Seven\ Kingdoms  windows

david@david-laptop:~/.wine/drive_c$ cd Program\ Files
david@david-laptop:~/.wine/drive_c/Program Files$ dir

AutoHotkey     Firaxis\ Games				 MSN\ Messenger
Common\ Files  InstallShield\ Installation\ Information  Ubisoft
directx        Internet\ Explorer

david@david-laptop:~/.wine/drive_c/Program Files$ cd Firaxis\ Games
david@david-laptop:~/.wine/drive_c/Program Files/Firaxis Games$ dir

Sid\ Meier's\ Civilization\ 4

david@david-laptop:~/.wine/drive_c/Program Files/Firaxis Games$ cd Si Meier's\ Civilization\ 4
> dir
> dir
> 
david@david-laptop:~/.wine/drive_c/Program Files/Firaxis Games$ cd Sid\ Meier's\ Civilization\ 4
>
One thing i notice, and this may be strange just because if my window's mind, but when i'm IN a directory, the subs are seperated by /'s, however, whenever i CD into a directory, i use \'s in the sub name...
 
Old 03-17-2009, 11:24 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Indeed, ' has a meaning to bash.
It means 'start or terminate a string and don't care about variables'
you can also use " to start and terminate a string
try: cd "Sid Meier's Civilization 4"
 
Old 03-17-2009, 11:26 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
The apostrophe is a special character in the shell, not the filesystem; since you have a directory whose name contains an apostrophe, it can't be illegal for the filesystem to contain one.

In order to change into the directory with the apostrophe in, you either need to escape it (just like the spaces in the name are escaped, with a \), or enclose the name in inverted commas:
Code:
cd Sid\ Meier\'s\ Civilization\ 4
or
Code:
cd "Sid Meier's Civilization 4"
The / is the only character not allowed in filenames on unix filesystems because it's what separates one directory from a subdirectory; all other characters are valid.

Quote:
Originally Posted by akuthia
One thing i notice, and this may be strange just because if my window's mind, but when i'm IN a directory, the subs are seperated by /'s, however, whenever i CD into a directory, i use \'s in the sub name...
Only if there's a space (or other special character) in the name. Subdirectories are always separated by /.

Last edited by pwc101; 03-17-2009 at 11:27 AM.
 
Old 03-19-2009, 10:17 AM   #4
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
thanks a bunch, that got me in... now if only i can get it to run.. lol...
 
Old 03-19-2009, 10:40 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Perhaps these will help?
http://appdb.winehq.org/appview.php?iAppId=2514
http://tombuntu.com/index.php/2009/0...ith-wine-1116/
 
Old 03-19-2009, 11:37 AM   #6
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
unfortunately not, the error codes im getting at this point are about the security (it seems thats being skipped) and all reports i've seen are saying wine is now handling the copy protection scheme for civ 4, something about unimplemented actions for setting sticky mouse keys, and sticky keys. and an error trying to animate the cursor.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
trouble mounting local and network filesystems with accented character filenames amorphia Linux - General 0 09-04-2008 05:21 PM
sed matching an apostrophe dazdaz Linux - General 2 04-28-2006 06:24 PM
Quote/Apostrophe Key JordanF Linux - General 1 08-11-2005 03:52 PM
windows filesystems vs. linux filesystems irfanhab General 8 05-25-2004 08:21 AM
Linux man pages apostrophe problem??? Ynog Linux - General 1 01-07-2004 03:34 PM


All times are GMT -5. The time now is 08:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration