1833027 Members
2500 Online
110049 Solutions
New Discussion

Issue with @ in .profile

 
SOLVED
Go to solution
Grayh
Trusted Contributor

Issue with @ in .profile

How to set the stty 'kill' to something other than the '@'....
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor
Solution

Re: Issue with @ in .profile

Hi:

The manpages for 'stty' would tell you how, but (for example):

# stty kill '+'

To return to standard values:

# stty sane

Regards!

...JRF...
Grayh
Trusted Contributor

Re: Issue with @ in .profile

I am not sure if I am clear or not but ... just to double check..

when I use the @ symbol in the terminal window .. It seems the OS interprets the @ special and wants me to escape the @ if I ment it literally.

What I'm thinking is this problem can be fixed with proper .profile settings for the user.
Could you confirm this by suggesting to me what my .profile would look like in order to avoid this issue?
Grayh
Trusted Contributor

Re: Issue with @ in .profile

Thanks JRF...

Should I need to make any changes in the .profile for the changes to be permanent.....

If so plz advise
Ganesan R
Honored Contributor

Re: Issue with @ in .profile

Hi Grayh,

Yes. you need to put it in global profile(/etc/profile) or specifi user profile(/~HOME/.profile) to make it permanent.
Best wishes,

Ganesh.
James R. Ferguson
Acclaimed Contributor

Re: Issue with @ in .profile

Hi (again):

On my servers, 'stty -a' shows:

kill = ^U

Regards!

...JRF...
OldSchool
Honored Contributor

Re: Issue with @ in .profile

the actual command would be:

stty kill ^U

(thats Cntrl-U simultaneously), and is what mine is set to.
Ganesan R
Honored Contributor

Re: Issue with @ in .profile

Hi,

>>James.

On my servers, 'stty -a' shows:

kill = ^U <<<

"kill = ^U" is the default terminal setting.

Grayh, you may need to set like below in your profile.

stty kill "+"

or

export KILL="+"
stty kill $KILL

someone can correct me if i am wrong
Best wishes,

Ganesh.
James R. Ferguson
Acclaimed Contributor

Re: Issue with @ in .profile

Hi (again):

Let me be clear, yes, 'kill = ^U' is a default setting. I used 'kill = +' *only* as an example! I really doubt that you want to use that setting!

Actually, the setting for 'kill = ^U' is done in the standard root profile. You "should" have something like:

stty erase "^H" kill "^U" intr "^C" eof "^D"

Regards!

...JRF...
Grayh
Trusted Contributor

Re: Issue with @ in .profile

Thanks every One