HDTenEightyP/NetNews huggingface dataset:
From: plobo@dvlseq.us.oracle.com (Patrick Lobo)
Newsgroups: comp.unix.shell
Subject: Re: How to do $#a in Bourne shell?
Date: 10 Sep 92 19:09:28 GMT
Organization: Oracle World HQ, Redwood Shores, California
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

In article <peter.716085132@merlin> peter@merlin.acadiau.ca (Peter Steele) writes:
>If I have a list in Bourne shell, how can I determine how many
>elements are in, short of write a for loop and counting them?
>Bourne shell doesn't seem to have C shell's $#variable construct.
>It doesn't seem to support array indexing either, although I'm just
>learning it and I might be missing something....
>--


Here is a Bourne Shell script that attempts to explain how to do this:
Basically, you use the set command.


========================= cut here =====================
#!/bin/sh

echo
echo "Initially, this is the scenario"

echo "These are the command line arguments: $@"
echo "This is the number of command line arguments: $#"

echo 
echo "------------------------"
echo 

echo "FIRST SAVE THE COMMAND LINE ARGUMENTS"
args=$@


echo "THEN COUNT THE ELEMENTS IN THE LIST"

list="a b c d e f g h i j k l m n"
set $list                      # list now replaces the command line args
echo "This is the list: $*"
list_len=$#
echo "This is the length of the list $list_len"


echo 
echo "------------------------"
echo 

echo "FINALLY, RESTORE THE COMMAND LINE ARGUMENTS"

set $args

echo "These are the original command line arguments: $@"
echo "This is the original number of command line arguments: $#"

========================= end of script =====================


Patrick Lobo
From: stuart@wstuart (Stuart Hood)
Newsgroups: comp.unix.shell
Subject: Re: How to do $#a in Bourne shell?
Date: 10 Sep 92 16:16:10 GMT
Organization: Siemens Nixdorf Information Systems Ltd.
X-Newsreader: Tin 1.1 PL4

peter@merlin.acadiau.ca (Peter Steele) writes:
: If I have a list in Bourne shell, how can I determine how many
: elements are in, short of write a for loop and counting them?
: Bourne shell doesn't seem to have C shell's $#variable construct.
: It doesn't seem to support array indexing either, although I'm just
: learning it and I might be missing something....

I think the best way to deal with lists in Bourne Shell is to
use the set command.  For example, suppose you want to count
how many items are in the PATH list:

#!/bin/sh
IFS=:
set $PATH
echo $#
exit 0

Stuart
-
--
S I E M E N S  Stuart Hood === Siemens Nixdorf House, Bracknell, Berks, UK
-------------  Phone: + 44-344-850892          Email: stuart@siesoft.co.uk
N I X D O R F  - Never let ignorance stand in the way of a good argument -
From: leisner@eso.mc.xerox.com (Marty Leisner 311/? x?)
Newsgroups: comp.unix.shell
Subject: attaching to a job
Date: 10 Sep 92 16:33:49 GMT
Reply-To: leisner.henr801c@xerox.com
Organization: Xerox

X-        sunforum.all_areas%xerox.com@eso.mc.xerox.com


I'm running a job which takes over the console and needs to run setuid root.

It has a hotkey so I can switch back and forth to the console (i.e. to run Xwindows).

After I run X, I can run the job again in foreground (via a fg command).

What I want to know is the application takes several minutes to boot up, I want to load it once at boot time
and attach to it after I login...security isn't a concern (anyone at the console should be able to run it...)

How do I attach a shell to an arbitrary job and what do I have to do so anyone can attach to the job (instead 
of root).

Marty    leisner.henr801c@xerox.com 
          Member of the League for Programming Freedom 
 	Give me source or waste my time..
Newsgroups: comp.unix.shell
From: aswx266@chpc.utexas.edu (Michael Lemke)
Subject: Re: Substring of a file name
Organization: The University of Texas System - CHPC
Date: Fri, 11 Sep 92 19:08:09 GMT

In article <1992Sep11.090613.8831@schbbs.mot.com> W10075@maccvm.corp.mot.com (Stephen Weet) writes:
>------------------------- Original Article -------------------------
>From: urs@carp.cis.ufl.edu (Uppili Srinivasan)
>
>Hi,
>
>I need to write a script to read a substring of some of the filenames
>
>in a directory. (i.e) if xy1992 is the name i need to read the last four
>
>letters only. I guess 'awk' is ideal for this . But I am curious to
>
>know the other ways of doing this.
>
>
>Thanx in advance
>
>My e-mail address : urs@carp.cis.ufl.edu
>------------------------------------------------------------------------
>
>If you know the length of the filename in advance you can use the cut
>command e.g     echo filename | cut -c5-8  will give you columns
>5 to 8.
>
>   If you do not know the length of the filename or if there is no
>   pattern you can go to awk (Probably the easiest) or try this :-
>
>
>        FLENGTH=`echo $filename |wc -l`
>        echo $filename | cut -c`expr $FL - 4 `-`expr $FL - 1 `
>
>   BEWARE :- Make sure all the spaces are in around expr's operatiors.


If  you are using expr anyway why not:

expr $filename : '^.*\(....\)'

Gets you the last four characters of filname.  The second part is just a
regular expression.  So expr $filename : '\(....\)$' should do as well. 
I didn't test either one which is pretty bad as RE's never do at first 
try what they are supposed to do.

Michael
-- 
Michael Lemke
Astronomy, UT Austin, Texas
(michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
Newsgroups: comp.unix.shell
From: Harald.Eikrem@delab.sintef.no
Subject: clever `cat' commmand?
Organization: SINTEF DELAB, Trondheim, Norway.
Date: 14 Sep 92 17:32:18


For once, a question.  Can anyone think of the simplest means of making
a utility that behaves like `cat(1)', but exits with 0 if something went
through it, otherwise 1?  Preferrably a one-liner......

I've tried:   awk '{ s=1; print; }; END{ if(s) exit 0; exit 1; }'

which is ok with a line oriented input stream, but not with a "binary" 
stream.

   ~~harald E.
From: posse@masg6.epfl.ch (Christian Posse)
Newsgroups: comp.unix.shell
Subject: re: "if () then" file tests in ...
Date: 8 Sep 92 15:19:26 GMT
Organization: Swiss Federal Institute of Technology

Thanks a lot to all who answered me about the description of the 
parameters in test sequences. 

The answer, not found in a first reading, is in the manual of csh
in the chapter 'expressions and operators'. In the future, in 
tcsh manual.

:-).

christian.
Newsgroups: comp.unix.shell
From: mjo@ef2007.efhd.ford.com (Mike O'Connor)
Subject: I want a teeny SysV Bourne Shell-compliant shell
X-Disclaimer: Not an official spokesperson for Ford OPEO
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: International Affairs, Overseas Engineering, "Fordz"
Date: Wed, 9 Sep 1992 20:46:48 GMT


I'm looking for a small SysV Bourne Shell-compliant shell.  pdksh and
bash are too big for my purposes.  Any suggestions?

						...Mike




-- 
 Michael J. O'Connor           |  Internet:  mjo@fmsrl7.srl.ford.com
 Ford Motor Company, OPEO      |  UUCP:      ...!{backbone}!fmsrl7!mjo
 20000 Rotunda, Bldg. 1-3001   |  Phone:     +1 (313) 248-1260
 Dearborn, MI  48121           |  Fax:       +1 (313) 323-6277
Newsgroups: comp.unix.shell
From: sasmob@chewy.unx.sas.com (Mark C. Burhans)
Subject: Re: HELP: Command-line editing with ksh/csh
Originator: sasmob@chewy.unx.sas.com
Date: Thu, 10 Sep 1992 17:09:25 GMT
Organization: SAS Institute Inc.


In article <Bton03.99n@agora.rain.com>, chuff@agora.rain.com (Chris Hufnagel) writes:
|> Hi, I am running Amiga Unix v2.1 and unfortunatly, the included ksh/csh
|> don't seem include command-line editing capabilities.  When I use
|> the cursor keys or an ESC(J,K) combination I only get "[[A, [[B, [[C, [[D)"
|> etc.  Am I forgetting to set something or is there a patch,utility that
|> gives me back the sacred command-line editing abilityies?

Don't know how to get the arrow keys to work as command recall...yet...
but with ksh you can try:
set -o emacs
   or
set -o vi


With 'set -o emacs':
   ^P   Previous command
   ^N   Next command
   ^B   Back up a character
   ^F   Move forward a charcer
   ^D   Delete character
   ^K   Erase from cursor to end of line


With 'set -o vi':
 --First the ESC key must be pressed--
    k   Previous command
    j   Next command
    h   Back up a character
    l   Move forward a character
    x   Delete character
    D   Erase from cursor to end of line
-- 
---Mark C. Burhans---sasmob@chewy.unx.sas.com---919/677-8001 ext 7324
SAS Institute, Inc., USA, SAS Campus Drive, Cary, NC 27513.
"If you want a resume, I'll put it in writing.  It's only good for a day
and the contents are frightening."  -- Lyrics by Harry Connick, Jr.
From: elitman@wam.umd.edu (Eric A. Litman)
Newsgroups: comp.unix.shell
Subject: Assigning home directories in tcsh
Date: 14 Sep 92 17:35:01 GMT
Organization: U. of Maryland, College Park.
X-Newsreader: Tin 1.1 PL5

I would like to assign certain frequently visited directories to be "home"
directories, accessible via the ~$USER expansion. I know that this function
is available in zsh, and could be done as well by adding entries to
/etc/passwd. Has anybody played with the complete function to do this? 

--
Eric A. Litman  #import <std/disclaimer.h> | NeXTMail, MIME accepted - please 
U. of Maryland, NeXT Campus Consultant     | indicate in Subject line.
From: friedman@gnu.ai.mit.edu (Noah Friedman)
Newsgroups: comp.unix.shell
Subject: Re: seding with variables and /s question
Date: 14 Sep 92 02:05:00 GMT
Organization: Free Software Foundation, 675 Mass Ave. Cambridge, MA 02139
In-reply-to: tmhoff@oogoody.Corp.Sun.COM's message of 12 Sep 92 22:01:33 GMT

In article <lb4q5tINNaef@jethro.Corp.Sun.COM> tmhoff@oogoody.Corp.Sun.COM (Todd Hoff) writes:
>I'm having a hard time using variables to specify search patterns containind /s
>in sed. Say my home development directory path is in $DEVEL and my destination
>path is in $DEST. Since these are path specifications they contain /s and when
>I do something like: sed -e 's/$DEVEL/$DEST/' $file > $destfile
>sed barfs on the /s. I've tried lots of variations. Any clues?

   Yes.  You'll have to quote all the special characters in your variable
so they won't confuse sed.  Example:

       QDEVEL=`echo "${DEVEL}" | sed 's/\([][*.\\\/?+|^$]\)/\\\1/g'`
       QDEST=`echo "${DEST}" | sed 's/\([][*.\\\/?+|^$]\)/\\\1/g'`
       

       sed -e "s/${QDEVEL}/${QDEST}" ${file} > ${destfile}

Note that I quote some characters like `+' that are normally harmless.  But
to GNU sed this is a special character.
Newsgroups: comp.unix.shell
From: jdell@indira.mit.edu (John Ellithorpe)
Subject: Re: Need help putting PWD in PROMPT
Organization: Massachusetts Institute of Technology
	<1992Sep14.023706.6385@muug.mb.ca>
Date: Tue, 15 Sep 1992 15:55:45 GMT

On 14 Sep 92 02:37:06 GMT, rhoro@muug.mb.ca (Rick Horocholyn) said:

> In <1992Sep13.154528.3369@muug.mb.ca> rhoro@muug.mb.ca (Rick Horocholyn) writes:
> In <1992Sep8.152514.24851@orlith.bates.edu> pbeach@abacus.bates.edu (Preston Beach) writes:
>>  I want to get my prompt to give my current working directory all the time.
> If you use pushd/popd at all, you'll also want to set aliases for them too:
> alias cd 'cd \!*; set prompt = "\! $cwd> "
> alias pushd 'pushd \!*; set prompt = "\! `pwd`> "'
> alias pop 'popd; set prompt = "\! `pwd`> "'

If you are using tcsh (or some other flavor of shell), you can just set the
prompt to whatever you want:

	% set prompt='%/>'

and it give you:

	/home/maggie/jdell>

for the prompt.  Tcsh also lets you specify hostnames, times, dates, current
history event numbers.  Also underlining and boldfacing, if supported.  I'm
using Tcsh 6.02.

John

--

===============================================================================
John Ellithorpe                           | Internet: jdell@maggie.mit.edu
Dept. of Physics, Rm 26-349               | Phone   : (617) 253-3074  Office
Massachusetts Institute of Technology     |           (617) 253-3072  Lab
Cambridge, MA  02139                      |           (617) 236-4910  Home
===============================================================================
Newsgroups: comp.unix.shell
From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
Subject: Re: KSH: how to stop $ENV
Organization: Motorola Codex, Canton, Massachusetts
Date: Fri, 11 Sep 1992 21:54:21 GMT

space%bnr.ca (Scott Pace) writes:

>Donn Cave (donn@carson.u.washington.edu) wrote:
>: space%bnr.ca (Scott Pace) writes:
>: 
>: | I have a shell script written in ksh (i.e. has #! /bin/ksh at the start).
>: | How do I prevent the ksh from executing $ENV?  This is on HP-UX 7.05.  I
>: | have read the man page, and I don't see any switches that would do this.
>: | What I really want is the equivalent of the -f switch in the csh.
>: 
>: #!/bin/ksh -p
>: 
>: But, don't be surprised if it doesn't work!  It works on some Korn shells,
>: not others.  It's generally not documented, may be obsolete.  I'd like to
>: know - I think it's a valuable feature.  (It's not the same as expecting your
>: users to use the bizarre interactive-only formula for ENV.)
>: 

>But I can't use -p since it clobbers the $PATH variable, and I need that to
>be kept intact.

If $PATH is being clobbered, it is probably being done in /etc/suid_profile.

How about replacing

 #! /bin/ksh

with

 #! /bin/sh
 case "$RANDOM" in '') ENV= ; exec /bin/ksh $0 ${1+"$@"} ;; esac

Michael.
Newsgroups: comp.unix.shell
From: legend@cheshire.oxy.edu (Linda A. Malcor)
Subject: Korn Shell Beginnings
Summary: Looking for Korn Shell Help
Keywords: ksh shell books
Organization: Occidental College, Los Angeles, CA 90041 USA.
Date: Sun, 6 Sep 1992 04:27:08 GMT


I am just starting out with an IBM AIX system and the Korn shell really
seems the way to go. I bought "The" book by David Korn himself, and
where it is very good, there aren't nearly enough examples and
"Tips-n-Tricks" type stuff. I have been looking in on this group for a
few weeks and noone seems to talk about ksh that much.  Is there
anything good out there I can ftp?

Daniel Malcor
Los Angeles Times - Editorial Library
(213) 237-4590
From: dattier@ddsw1.mcs.com (DWT)
Newsgroups: comp.unix.shell
Subject: Re: clever `cat' commmand?
Date: 15 Sep 92 15:50:18 GMT
Organization: Contributor Account at ddsw1, Chicago, Illinois  60657

cjross@bbn.com (chris ross) wrote in <lb9kc0INN78u@news.bbn.com>:

| Harald.Eikrem@delab.sintef.no writes:
| 
| >For once, a question.  Can anyone think of the simplest means of making
| >a utility that behaves like `cat(1)', but exits with 0 if something went
| >through it, otherwise 1?  Preferrably a one-liner......
| 
| >I've tried:   awk '{ s=1; print; }; END{ if(s) exit 0; exit 1; }'
| 
| >which is ok with a line oriented input stream, but not with a "binary" 
| >stream.
| 
| Your grep may be able to accomplish this.
| Use grep -s if you don't want the output.
| 
|   $ echo foo | grep .
|   foo
|   $ echo $?
|   0
|   $ cat </dev/null | grep .
|   $ echo $?
|   1

The problem is that a file consisting only of newlines will also return 1 if
you grep for .; grep for ^ or $.  You may need to escape either or both of
those in your shell, of course.

I guess ^ is better because if binary data has no bytes of decimal 10, grep
may decide that $ isn't there because nothing is immediately before a line-
feed, but there will always be a first character in the file unless it is
totally empty.

David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
Newsgroups: comp.unix.shell
From: W10075@maccvm.corp.mot.com (Stephen Weet)
Subject: Re: How to do $#a in Bourne shell?
Organization: Motorola
Date: 10 Sep 1992 08:45:04 CDT

------------------------- Original Article -------------------------
Newsgroups: comp.unix.shell
Path:
schbbs!mothost!ftpbox!uunet!europa.asd.contel.com!darwin.sura.net!convex!news.ut
dallas.edu!corpgate!bnrgate!nrcnet0!cunews!torn!csd.unb.ca!morgan.ucs.mun.ca!nst
n.ns.ca!dragon.acadiau.ca!merlin!peter
From: peter@merlin.acadiau.ca (Peter Steele)
Subject: How to do $#a in Bourne shell?
Organization: Acadia University
Date: Thu, 10 Sep 1992 00:32:12 GMT

If I have a list in Bourne shell, how can I determine how many
elements are in, short of write a for loop and counting them?
Bourne shell doesn't seem to have C shell's $#variable construct.
It doesn't seem to support array indexing either, although I'm just
learning it and I might be missing something....
--
Peter Steele        Unix Services Manager            peter.steele@acadiau.ca
Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364



Try the following :-

     LIST="1 2 3 4 5 6"
     set $LIST          # set elements of list as pos params
     echo $#            # No . of pos params
From: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
Newsgroups: comp.unix.shell
Subject: Re: How to do $#a in Bourne shell?
Date: 14 Sep 92 19:40:43 GMT
Reply-To: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
Organization: NCR USG Data Services Division

In article <peter.716085132@merlin> peter@merlin.acadiau.ca (Peter Steele)
writes:
>If I have a list in Bourne shell, how can I determine how many
>elements are in, short of write a for loop and counting them?
>Bourne shell doesn't seem to have C shell's $#variable construct.
>It doesn't seem to support array indexing either, although I'm just
>learning it and I might be missing something....
>--
>Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
>Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364


 You did not say where your list was. If it is in a file with one list
member per line such as :

  aaa
  bbb
  ccc

 try this

  CNT=`cat listfile | wc -l`

 The variable CNT will have the number of lines in "listfile"


-- 
Dennis Kowalski         NCR Corporation  PCD-3                  (513) 445-1843
Systems Architecture    1700 S. Patterson Blvd              VOICEplus 622-1843
USG Data Services Div   Dayton, Ohio     45479
Dennis.Kowalski@DaytonOH.NCR.COM
Newsgroups: comp.unix.shell
From: bruno@thunder.mcrcim.mcgill.edu (Bruno Hall)
Subject: Can someone post the FAQ, please?
Organization: McGill University Broom Closet
Date: Tue, 8 Sep 92 13:57:28 GMT

Thanks.
-- 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Bruno Hall  |  VE2HUM  |  bruno@mcrcim.mcgill.edu         
McGill Research Centre for Intelligent Machines - Controls Group
New systems generate new problems -- Join the Flat Earth Society.
Newsgroups: comp.unix.shell
From: mjo@snclib.snc.edu (Mike O'Connor)
Subject: Re: Echo in TCSH (6.02)
Reply-To: Mike O'Connor <mjo@snclib.snc.edu>
Organization: :noitazinagrO
Date: Thu, 10 Sep 92 08:14:49 GMT

In article <1992Sep9.212014.27499@Rapnet.Sanders.Lockheed.Com> kelley@rapnet.sanders.lockheed.com (Sean Kelley) writes:

:After installing TCSH 6.02 on a Sparc 2, I noticed that I was unable to echo
:control or escape characters to the window manager twm or mwm.
:
:For example:  This should change the tile bar of the xterm window.
:
:>alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd ^G"'
:>cd tmp
:^[]2;gregg:/tmp ^G >
:
:The shell is just treating the echo as text.
:So, I tried setty +echoctl, with no change.
:
:	Thanks for any suggestions,

Check your echo_style setting, new to tcsh 6.02.

-- 
Mike O'Connor
"The NNTP Administrator"
<mjo@snclib.snc.edu>
Newsgroups: comp.unix.shell
From: kevinc@casey.uucp (Kevin C. Castner)
Subject: Setting variables in Bourne Shell
Keywords: bourne shell
Organization: UPS Research & Development
Date: Wed, 9 Sep 1992 15:48:16 GMT

I am trying to write a shell script that allows me to create a list of
variables in a text file (colon separated) at runtime, and then set the
value to a series of variables.

The script looks something like this

# VARLIST is really set by a shell process
VARLIST="3 4"

for i in `cat ./test.db`
do
	for j in `echo $VARLIST`
	do
		P${j}=`echo $i | cut -f ${j} -d ':'`
	done

	echo "P1:${P1}, P2:${P2}"
done


The test.db is:

11:12:13:14:15:16:17
21:22:23:24:25:26:27
31:32:33:34:35:36:37

and the output of a sh -x is:

VARLIST=3 4
+ cat ./test.db 
+ echo 3 4 
+ echo 11:12:13:14:15:16:17 
+ cut -f 3 -d : 
+ P3=13 
test.sh: P3=13: not found
+ echo 11:12:13:14:15:16:17 
+ cut -f 4 -d : 
+ P4=14 
test.sh: P4=14: not found
+ echo P1:, P2: 
P1:, P2:
+ echo 3 4 
+ cut -f 3 -d : 
+ echo 21:22:23:24:25:26:27 
+ P3=23 
test.sh: P3=23: not found
+ echo 21:22:23:24:25:26:27 
+ cut -f 4 -d : 
+ P4=24 
test.sh: P4=24: not found
+ echo P1:, P2: 
P1:, P2:
+ echo 3 4 
+ echo 31:32:33:34:35:36:37 
+ cut -f 3 -d : 
+ P3=33 
test.sh: P3=33: not found
+ echo 31:32:33:34:35:36:37 
+ cut -f 4 -d : 
+ P4=34 
test.sh: P4=34: not found
+ echo P1:, P2: 
P1:, P2:


It seems as if the assignment is trying to be executed.  I have tried this
on both a Sun OS (4.1.2) and a SCO ODT 1.1 (Sys V 3.2.2) and the problem
is consistent.

I don't understand why this is happening.  All I am trying to do is set the
variable.  I think it has something to do with the fact the the variable 
name itself interpreted.  This probably means that it has something to do
with the order of interpretation of the shell.

It would be great if someone could explain this to me.


Thanks


  ============================================================================

	Kevin C. Castner                                 kevinc@ups.com

  ============================================================================
Newsgroups: comp.unix.shell
From: kelley@rapnet.sanders.lockheed.com (Sean Kelley)
Subject: Echo in TCSH (6.02)
Organization: Sanders Associates
Date: Wed, 9 Sep 92 21:20:14 GMT


After installing TCSH 6.02 on a Sparc 2, I noticed that I was unable to echo
control or escape characters to the window manager twm or mwm.

For example:  This should change the tile bar of the xterm window.

>alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd ^G"'
>cd tmp
^[]2;gregg:/tmp ^G >

The shell is just treating the echo as text.
So, I tried setty +echoctl, with no change.

	Thanks for any suggestions,
								Sean

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Sean Kelley            INTERNET: kelley@rapnet.sanders.lockheed.com
Lockheed-Sanders, Inc    
Avionics Division        
Nashua, NH               
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rock-Chalk JayHawk KU!!!!!!!!!!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Newsgroups: comp.unix.shell
From: space%bnr.ca (Scott Pace)
Subject: KSH: how to stop $ENV
Organization: Bell-Northern Research, Ottawa, Canada
X-Newsreader: Tin 1.1 PL5
Date: Fri, 11 Sep 1992 13:29:01 GMT

I have a shell script written in ksh (i.e. has #! /bin/ksh at the start).
How do I prevent the ksh from executing $ENV?  This is on HP-UX 7.05.  I
have read the man page, and I don't see any switches that would do this.
What I really want is the equivalent of the -f switch in the csh.

Thanks.

--
Scott Pace, Bell Northern Research, Ottawa, Canada, (613) 765-2631
space@bnr.ca - the final frontier  DoD# 850 - KotBTT, KotBP, KotIQ
Newsgroups: comp.unix,comp.unix.misc,comp.editors
From: cl129501@ulkyvx.louisville.edu
Subject: WANTED: QEdit-like editor for UNIX
Date: Fri, 11 Sep 1992 16:30:01 GMT
Organization: University of Louisville

Does anyone know of a good editor for UNIX that emulates QEdit and other
editors for the IBM PC?  I definitely need cursor movement keys and block
manipulation commands to be the same as they are on a PC.  Any ideas?

-- Darren Embry
   cl129501@ulkyvx.louisville.edu

   no sig 'cause I'm on a VAX!  :)