From owner-freebsd-questions Fri May 30 06:56:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA16375 for questions-outgoing; Fri, 30 May 1997 06:56:09 -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 GAA16352 for ; Fri, 30 May 1997 06:56:04 -0700 (PDT) Received: by mail.EUnet.hu, id PAA11507; Fri, 30 May 1997 15:55:47 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id QAA00435; Wed, 28 May 1997 16:54:05 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199705281454.QAA00435@CoDe.hu> Subject: Re: rc.conf vs sysconfig in 2.2.2-RELEASE To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Wed, 28 May 1997 16:54:04 +0200 (MET DST) Cc: chaos@tgci.com In-Reply-To: <199705280422.VAA08190@train.tgci.com> from "Riley J. McIntire" at "May 27, 97 08:49:48 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 > uh, I thought it would be "env EDITOR=/usr/bin/vi" ??? NO! > I did a "man export" and didn't find anything. It's a shell builtin in sh'ksh'pdksh'bash-world In (t)csh, you need setenv EDITOR /usr/bin/vi WITHOUT the ``=''! Bye, 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"