Re: sorting lines with nedit

Andrew Hood <[email protected]>
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
Eric Bouyoux wrote:
> Hi,
> 
> I use the Shell => sort command with nedit.
> The result of the command is correct except that on the first line I
> always have :
> <esc>]0;<<Unix hostname>> << Unix dirname of file>><bel><<Correct sorted
> line>>

tcsh is running init scripts. A login shell runs:

/etc/csh.cshrc
/etc/csh.login
~/.tcshrc or ~/.cshrc
~/.history
~/.login
~/.cshdirs

All other shells run

/etc/csh.cshrc
~/.tcshrc or ~/.cshrc

Your init scripts should be checking if stdin is a tty before doing any
terminal setup commands. e.g.:

if ( -t 0 ) then
...
endif

or

if ($?prompt) then
...
endif

-- 
There's no point in being grown up if you can't be childish sometimes.
                -- Dr. Who
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.