* Gene Spafford wrote on Sat, Feb 27, 2010 at 03:37:42AM CET:
> I use ksh  
> As part of the .profile, it runs the terminal reset sequence each login
> I don't see this as bad behavior
> 
> The ,kshrc file sets the prompt and does no other output.
> 
> I don't see either of these as setting up a bad environment

Both of these are useful when setting up an interactive shell, but for a
noninteractive shell, they make little sense.  Shell setups that produce
output tend to bother other programs like ssh as well.

One easy workaround is to wrap these commands in

  case $- in
    *i*)
       setup for interactive shell ...
       ;;
  esac

Cheers,
Ralf


Reply via email to