GNU Bash and CTRL-C/SIGINT

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
jimmer
Donor
Donor
Posts: 464
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

GNU Bash and CTRL-C/SIGINT

Unread postby jimmer » Sun Nov 22, 2015 4:46 am

Hey All,

GNU Bash 4.2.x seems to compile without fatal errors, but the resulting `bash` binary doesn't produce a ^C when you hit CTRL+C in winterm.

Have tried 3.2.56, 4.2, 4.2.10, 4.2.53 and 4.4-beta. All generate a non ^C producing binary.

Am calling configure as:

CC=c99 CFLAGS="-O2" ./configure

Can somebody hold my hand please?

PS. I know the Nekoware bash 4.2.10 notes state that it was compiled with -O1. Tried that, no dice.
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

User avatar
uunix
Donor
Donor
Posts: 1793
Joined: Sun Mar 27, 2011 12:48 pm
Location: Stourbridge / England / UK

Re: GNU Bash and CTRL-C/SIGINT

Unread postby uunix » Sun Nov 22, 2015 6:02 am

I can confirm that 4.2.10 on my system produces the ^C, not much help with your problem, but I suppose at least we know that version SHOULD work?

Any chance it's your environment, keyboard etc etc?
-----------------------------------------------------------------------
Hey Ho! Pip & Dandy!
:Octane2: :O2: :Indigo: :Indy:
-----------------------------------------------------------------------

User avatar
foetz
Moderator
Moderator
Posts: 6542
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: GNU Bash and CTRL-C/SIGINT

Unread postby foetz » Sun Nov 22, 2015 7:21 am

just use zsh if you like it fancy :P

User avatar
duck
Donor
Donor
Posts: 727
Joined: Mon Oct 27, 2003 5:22 pm
Location: Jakobstad, Finland
Contact:

Re: GNU Bash and CTRL-C/SIGINT

Unread postby duck » Sun Nov 22, 2015 7:50 am

Nevermind this post, it seems I've twiddled with the file in question.
:Octane: halo, octane Image knightrider, d i g i t a l AlphaPC164, pond, soekris net6501, misc cool stuff in a rack
N.B.: I tend to talk out of my ass. Do not take it too seriously.

User avatar
jimmer
Donor
Donor
Posts: 464
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: GNU Bash and CTRL-C/SIGINT

Unread postby jimmer » Sun Nov 22, 2015 2:51 pm

Solved by adding:

stty intr '^C' echoe

to .bashrc from .profile

User avatar
s0ke
Donor
Donor
Posts: 192
Joined: Mon Feb 24, 2003 8:27 am
Location: TX

Re: GNU Bash and CTRL-C/SIGINT

Unread postby s0ke » Wed Dec 14, 2016 8:02 am

May I see your .bashrc?

This doesn't work for me still even after adding the stty line.

I'm running version 4.3.33.

Thanks

Edit:Nevermind. I had to add it to .bash_profile.
:Fuel: REFUSE
R16K 700: 2GB: V10: Noctua Fans

User avatar
Raion-Fox
Donor
Donor
Posts: 1329
Joined: Thu Jan 30, 2014 5:01 pm
Location: near King George, Virginia
Contact:

Re: GNU Bash and CTRL-C/SIGINT

Unread postby Raion-Fox » Fri Dec 16, 2016 8:18 pm

I always find it odd - these days I use tcsh and find it has what I actually use from zsh (pop/push functionality, tab completion for files, ~, ! syntax etc.) with the one exception of ESC+. I was considering making ESC+. a shortcut in the rc for !$ (last command last argument) but I'm increasingly finding that tcsh (I'm using the one from NetBSD on the Fuel) is perfect for what I need.
:O3x02L: R16000 700MHz 8GB RAM kanna
:Octane: R12000 300MHz SI 896MB RAM yuuka
:Octane2: R12000A 400MHz V6 2.5GB RAM
:Indy: (Acclaim) R4600 133MHz XL Graphics 32MB RAM
:Indy: (Challenge S) R4600 133MHz (MIPS III Build Server)
Thinkpad W530 i7 3940XM 3GHz, 32GB, K1000M Windows 8.1 Embedded rin
Thinkpad R40 Pentium M 1.5GHz 2GB RAM kasha

Y888099
Posts: 523
Joined: Mon Jul 11, 2016 11:00 am

Re: GNU Bash and CTRL-C/SIGINT

Unread postby Y888099 » Wed Dec 21, 2016 3:05 pm

TeamBlackFox wrote:NetBSD on the Fuel


umm, is it slow? decent enough?
Head Full of Snow. Lemon Scented You

User avatar
miod
Posts: 507
Joined: Fri Oct 09, 2009 2:44 am
Location: Clermont-Ferrand (France)
Contact:

Re: GNU Bash and CTRL-C/SIGINT

Unread postby miod » Wed Dec 21, 2016 10:35 pm

Y888099 wrote:
TeamBlackFox wrote:NetBSD on the Fuel


umm, is it slow? decent enough?

He's talking about tcsh only :lol:
:Indigo:R3000 (alas, dead) :Indigo:R4000 x4 :Indigo2:R4400 :Indigo2IMP:R4400 x2 :Indigo2:R8000 :Indigo2IMP:R10000 :Indy:R4000PC :Indy:R4000SC :Indy:R4400SC :Indy:R4600 :Indy:R5000SC :O2:R5000 x3 :O2:RM7000 :Octane:2xR10000 :Octane:R12000 :O200:2xR12000 :O200: - :O200:2x2xR10000 :Fuel:R16000 :O3x0:4xR16000 :A350:
among more than 150 machines : Apollo, Data General, Digital, HP, IBM, MIPS before SGI, Motorola, NeXT, SGI, Solbourne, Sun...

User avatar
Raion-Fox
Donor
Donor
Posts: 1329
Joined: Thu Jan 30, 2014 5:01 pm
Location: near King George, Virginia
Contact:

Re: GNU Bash and CTRL-C/SIGINT

Unread postby Raion-Fox » Thu Dec 22, 2016 8:25 am

Yeahh Miod's got the idea.
:O3x02L: R16000 700MHz 8GB RAM kanna
:Octane: R12000 300MHz SI 896MB RAM yuuka
:Octane2: R12000A 400MHz V6 2.5GB RAM
:Indy: (Acclaim) R4600 133MHz XL Graphics 32MB RAM
:Indy: (Challenge S) R4600 133MHz (MIPS III Build Server)
Thinkpad W530 i7 3940XM 3GHz, 32GB, K1000M Windows 8.1 Embedded rin
Thinkpad R40 Pentium M 1.5GHz 2GB RAM kasha


Return to “SGI: Development”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests