Re: How to list the first 10 lines error from executing command

From: Joe Halpin (jhalpin_at_nortelnetworks.com_.nospam)
Date: 07/30/03


Date: 30 Jul 2003 08:22:31 -0500


"JohnWu" <johnwu@yorku.ca> writes:

> "Chris F.A. Johnson" <c.f.a.johnson@rogers.com> wrote in message
> news:bg7ciq$lhnck$1@ID-136730.news.uni-berlin.de...
> > Redirection is one of the things that [t]csh doesn't handle well.
> >
> > Why don't you use a Bourne-type shell? [T]csh is not recommended
> > for scripting.
> >
> Bourne Shell is better, I agree. The things to me are, my account's
> default shell is set to tcsh, and some of the commands linked to DB2
> and other softwares only work in tcsh (guess this can be fixed).
>
> Anyway, the inconvenience for me to use Bourne Shell is that, I
> don't know how to set up or configure the environment, so that
> whenever login to my account in Solaris 5.8, the (Left and Right)
> arrows keys can display the command histroy,so that long command
> line can be issued by a Arrow key javac -classpath ..... file.java

If you use korn shell or bash you get (IMO) better command line recall
and editing than with csh, and you can choose between vi and emacs
editing modes.

Take a look at

http://www.faqs.org/faqs/unix-faq/shell/shell-differences/

Joe



Relevant Pages

  • setting variables in tcsh temporarily
    ... I have this simple question regarding the tcsh: ... in /bin/sh (Bourne shell) I can assign a value to an environment variable for ... just one command, like this: ... setenv DISPLAY:0 ...
    (freebsd-questions)
  • Re: Announcement: bashcritic
    ... All shells but bash will allow any command. ... Not true, works in ksh88, ksh93, Bourne shell, ash, pdksh, posh, ... pedantic here in not supporting simple commands like every other ...
    (comp.unix.shell)
  • test command differences between IRIX and Linux
    ... I've been living fat dumb and happy, using Bourne Shell, and under ... IRIX for the past 10 years or so. ... In several places I have used the test command to test for readable ... How would I test one or more readable files in a directory under Bash, ...
    (comp.unix.shell)
  • Re: test command differences between IRIX and Linux
    ... > I've been living fat dumb and happy, using Bourne Shell, and under ... > In several places I have used the test command to test for readable ... > command, it bombs out with completely unwanted extra help, without ... > How would I test one or more readable files in a directory under Bash, ...
    (comp.unix.shell)
  • Re: How to list the first 10 lines error from executing command
    ... softwares only work in tcsh. ... Anyway, the inconvenience for me to use Bourne Shell is that, I don't know ... the arrows keys can display the ... command histroy,so that long command line can be issued by a Arrow key ...
    (comp.unix.programmer)