- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stty kill signal not working with k shell
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2009 04:15 AM
тАО03-30-2009 04:15 AM
stty kill ^U is not working with k shell. kill signal is suppose to erase all the contents on the command line we typed when we press ^U right?
But it is working perfectly on posix shell.
$HOME/.profile has the following
stty erase "^H" kill "^U" intr "^C" eof "^D"
I also tried setting the value in command line like this
#stty kill ^U
but still it is not working..
Any idea?
Ganesh.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2009 04:28 AM
тАО03-30-2009 04:28 AM
Re: stty kill signal not working with k shell
Can you please post stty -a output?
Also take a look at the env, there could be issues.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2009 04:50 AM
тАО03-30-2009 04:50 AM
Solutionso if you enter:
somejunk ^U ls /tmp
in both sh and ksh
then what you see on the screen will be slightly different, but everything up to and including the ^U won't be interpreted by the shell in either case
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2009 04:51 AM
тАО03-30-2009 04:51 AM
Re: stty kill signal not working with k shell
speed 38400 baud; line = 0;
rows = 42; columns = 125
min = 1; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp
werase
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
$ echo $SHELL
/usr/bin/ksh
$ grep stty .profile
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2009 05:01 AM
тАО03-30-2009 05:01 AM
Re: stty kill signal not working with k shell
Got your point. It works as expected in ksh.
But why it is not showing on the screen. Is it the shell ability? In that case how the normal user will interpret the screen?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2009 08:25 PM
тАО03-30-2009 08:25 PM
Re: stty kill signal not working with k shell
It seems to be working fine for me. If you have viraw, it erases the current line, otherwise it goes to the next:
$ sdfsf ^X
ff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 01:53 AM
тАО03-31-2009 01:53 AM
Re: stty kill signal not working with k shell
Ganesh.