Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel excel 2003 firefox hard drive hardware internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Special characters in shell

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
pastorjim2's Avatar
Member with 47 posts.
 
Join Date: Feb 2003
Location: So. Cent. TN
Experience: Intermediate
21-Jun-2003, 09:27 PM #1
Special characters in shell
In doing some reading about characters in shell commands it says that you can use quotation characters to disable or modify a characters meaning--is that correct?<br>Question is why would you disable characters by quoting?<br>Why not just omit the character from the command line in the first place? or am I missing something?
__________________
"Do unto others as though you were the others" Elbert Hubbard
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
23-Jun-2003, 01:22 AM #2
The intent is to allow you to process arguments (filenames, etc.) that may contain special characters that are otherwise significant to the shell (such as asterisk ('*') or ampersand ('&'), for example). Even embedded blanks (space characters) are problematic for the shell, since normally a blank separates arguments; if you wish to treat several consecutive words as a single argument, then quotes will allow you to do so.

Naturally, the story doesn't end there -- single quotes and double quotes are treated slightly differently by the shell, and sometimes those differences become significant. However, the principle is still the same: quotes "protect" special characters from being interpreted by the shell as they normally would.

Hope this helps.
__________________
The slowest component still sits at the keyboard.
pastorjim2's Avatar
Member with 47 posts.
 
Join Date: Feb 2003
Location: So. Cent. TN
Experience: Intermediate
23-Jun-2003, 09:31 AM #3
Quote:
quotes "protect" special characters from being interpreted by the shell as they normally would.
<br>Thanks codejockey!! Now it makes sense to me. I appreciate your making it easier to understand. jim
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
23-Jun-2003, 11:25 PM #4
Glad I was able to help make sense of things.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 12:48 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.