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 12-12-2007, 11:49 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
grep: Trailing backslash


Why does this happen? I get it once in a while when I try to do tab completion.
 
Old 12-13-2007, 03:51 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Normally, you would use a trailing backslash at the end of each line of a really long command. It sorta forces the cursor to "CF" to the next line.

Alternatively, the backslash can be used as an escape character.

What is the command that causes your problem?
 
Old 12-16-2007, 10:05 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Ahh, not to be rude, but why does what happen? -- Did part of your post get lost?
 
Old 12-16-2007, 12:35 PM   #4
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Original Poster
Rep: Reputation: 80
What happens is what is in my thread topic. I'll explain more. Whenever I use tab completion with certain commands, I get the message "grep: Trailing backslash". I don't remember what command it was that caused it to happen, but it has happened several times. Then I cannot complete the command, and I have to start over without using tab completion. Is there any way I can still use tab completion? What is CF. I was thinking carriage return, but that can't be right? I googled http://www.google.com/search?q=defin...ient=firefox-a and none of those definitions seem correct for the meaning that you meant.
 
Old 12-16-2007, 06:45 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
Originally Posted by rkelsen View Post
It sorta forces the cursor to "CF" to the next line.
Yeah, what is "CF"? (I do understand folding a logical line into 2 physical ones -- you're actually escaping the new-line -- but I don't understand the acronym.)


fakie_flip
What is the command that causes your problem? I assume it's to do w/ tab completion of the options for a particular command. For instance: In MEPIS, "apt-get i<tab>" magically becomes "apt-get install " (including the 2nd space).

I have never seen the "grep: Trailing backslash" error msg., but if you'll give an actual example, I'd like to try to duplicate your problem.

BTW, the controlling file (all 833 lines in MEPIS 6.0) is /etc/bash_completion, the problem may lie there.
 
Old 12-16-2007, 07:31 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Quote:
Originally Posted by archtoad6 View Post
Yeah, what is "CF"? (I do understand folding a logical line into 2 physical ones -- you're actually escaping the new-line -- but I don't understand the acronym.)
It was probably a bad choice of phrase. I meant it as "carriage return".

Your description (folding a logical line into two physical ones) is way better than mine was. I haven't been getting much sleep lately because we have a newborn, so please forgive me.
 
Old 12-17-2007, 03:45 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
It was probably a bad choice of phrase. I meant it as "carriage return".
That is also known by "CR", so I'd surmise you blended "CR" and "LF" (carriage return and line feed) .

Quote:
Originally Posted by rkelsen View Post
...we have a newborn...
All the best wishes for your family then and in particular for the youngest member .
 
Old 12-17-2007, 05:27 AM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Quote:
Originally Posted by JZL240I-U View Post
That is also known by "CR", so I'd surmise you blended "CR" and "LF" (carriage return and line feed) .
You're probably right.
Quote:
Originally Posted by JZL240I-U View Post
All the best wishes for your family then and in particular for the youngest member .
Thanks mate. She's our first. This lack of sleep business is taking a bit of getting used to, but her smile is makes it all worthwhile!

And now back to the topic at hand:

fakie_flip: I've found out that in order for grep to give that message, the \ has to be escaped first, eg: \\. I dunno if that helps, but it's something...
 
Old 12-17-2007, 07:22 AM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
rkelsen,
Let me "pile on" w/ congratulations & sympathy for the sleep deprivation.
(Mine, i.e. my 1st, is expecting her 4th.)


& back on topic:
Quote:
fakie_flip: I've found out that in order for grep to give that message, the \ has to be escaped first, eg: \\.
Just to be crystal clear, would that escaping be in /etc/bash_completion?
 
Old 12-17-2007, 09:17 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Rep: Reputation: Disabled
Quote:
Originally Posted by archtoad6 View Post
...(Mine, i.e. my 1st, is expecting her 4th.)...
So you are going to become grandfather again by your first daughter's forth child? Or is it the forth child of your first wife?

My children are now 8 and 6 and the problems changed .

Last edited by JZL240I-U; 12-17-2007 at 09:18 AM.
 
  


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
Perl replace backslash rjcrews Programming 2 04-02-2007 12:02 PM
backslash in vi ashlesha Linux - Newbie 5 02-24-2007 06:27 AM
backslash input in script esasse Linux - Newbie 6 02-17-2005 06:55 AM
Trailing Backslash problem duerra Linux - Newbie 6 01-28-2004 12:58 PM
Backslash in URL Cynthia Blue Linux - Newbie 17 08-18-2003 07:36 AM


All times are GMT -5. The time now is 06:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration