LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2003, 09:59 AM   #1
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
cdparanoia "protect from shell" ??


I've been having much success with cdparanoia-sure wish I hadn't spent so much time trying to use a gui when all I had to do was learn cdparanoia. Anyway........I see this in the user manual and am not sure what it means. Any pointers?

"Again, don't forget to protect square brackets and pre-
ceeding hyphens from the shell."

Why do we need to 'protect' anything from the shell? I have the examples given in the manual and man pages and don't seem to have any troubles ripping tracks- I guess I'm just curious as to what that means.

Thanks.
 
Old 04-05-2003, 01:41 PM   #2
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Why do we need to 'protect' anything from the shell?
so it does not get misinterpreted. This is evident in many different console commands (the most know protection are quotes ("something 2 do"), so that a line of text (with numbers?) is interpreted as one option.

the easiest example is:
cdparanoia -- "-3"

what this tells cdparanoia, is that the "-3" will be a span instead of an option. if you did not use the --, the command would see the hyphen and use "-3" as an option. Since no such option exists, it hopefully will give you an error (it would be worse and misinterpreted and did something terribly worng -like remove your home dir ; )

\edit

Basically, the problem is that the shell does not have an AI - it cannot distinguish and determine what you are trying to do. if its programmed to see a hyphen as an option, it will do so with out asking questions.

Last edited by cuckoopint; 04-05-2003 at 01:43 PM.
 
Old 04-05-2003, 01:57 PM   #3
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by cuckoopint


Basically, the problem is that the shell does not have an AI - it cannot distinguish and determine what you are trying to do. if its programmed to see a hyphen as an option, it will do so with out asking questions.
oic- so it really has nothing to do with cdparanoia at all but the shell itself. gotcha-crystal clear

Thanks cuckoopint
 
  


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
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
No UTMPX entry, You must EXEC "login" for the lowest "shell" ooihc Solaris / OpenSolaris 7 03-12-2007 03:09 PM


All times are GMT -5. The time now is 10:15 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