sorting lines with nedit
Andrew Hood
ajhood at fl.net.au
Wed Apr 30 14:06:11 CEST 2008
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
More information about the Discuss
mailing list