Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-19-2006, 04:49 PM   #1
Registered: Jul 2006
Distribution: Source Mage 0.9.6
Posts: 196

Rep: Reputation: 30
forward slash being treated as escape character in shell?

I just got my LFS 6.1.1 system up and running but have a
slight, well not so slight problem. Bash is not allowing me
to type the / (forward slash) When I do use forward slash at
the shell, and I try to follow it with any other keystroke
it doesn't display the next keystroke, which is why I'm
wondering if the forward slash is being treated as an escape
character. Now during login I can type a forward slash, and
in lynx and nano, no problem, but bash is jacked up.

Any suggestions as to why this might be happening.

EDITED: I found the problem in inputrc I had a couple of
forward slashes where I should have had backslashes.

Last edited by debiant; 07-19-2006 at 04:54 PM. Reason: Found solution
Old 07-19-2006, 04:57 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,946
Blog Entries: 14

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Type "stty -a" and see if the forward slash is defined for anything.

It may be your bashrc or profile (or .bashrc or .profile) have a stty defined for the foward slash though obviously they shouldn't.

Try typing "csh" or "ksh" or "zsh" if you have one of those shells and see if the problem still occurs in those other shells. If so it may help rule it out as being an issue with your bash shell and something a little more global.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script question: automatic \ of escape characters in string lagu2653 Programming 2 03-08-2006 07:58 AM
SuidPerl Mail Shell Escape Vulnerability jeremy Linux - Security 1 04-27-2005 03:01 AM
Escape character ? juanb Linux - Newbie 2 08-31-2004 10:03 AM
Escape character not working in shell script philipz Programming 1 04-29-2004 09:58 AM
How do I escape $# in shell scripting? KDE4me Programming 3 06-25-2003 10:35 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:37 PM.

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