From owner-freebsd-questions Tue Jun 10 07:35:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA07665 for questions-outgoing; Tue, 10 Jun 1997 07:35:07 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA07622 for ; Tue, 10 Jun 1997 07:34:54 -0700 (PDT) Received: by mail.EUnet.hu, id QAA17341; Tue, 10 Jun 1997 16:34:33 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id QAA00362; Tue, 10 Jun 1997 16:07:46 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199706101407.QAA00362@CoDe.hu> Subject: Re: where to have "stty erase ^H" executed?, .profile To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 10 Jun 1997 16:07:46 +0200 (MET DST) Cc: dkeller@psln.com In-Reply-To: <199706061912.MAA06759@psln1.psln.com> from Daniel Keller at "Jun 6, 97 12:42:43 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi, > I would like to have "stty erase ^H" executed whenever the computer is > booted up, which file should I put it in so it effects every user? I > noticed that the file /.profile has this line, but the file is not > executable and I never see and output from it. i) Well, because you have to say it in every terminal line, I think the correct place is 1) /etc/profile - for sh/ksh/pdksh/bash/i don't knot the other sh-like shell 2) /etc/csh.login - for csh/tcsh/ -"- csh -"- ii) Or you have to make your changes into /etc/gettytab, and put into its default section an er=^H - or something like this. (man 5 gettytab) Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"