home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110725.etc.tar.gz / bradford.20110725.etc.tar / etc / profile.d / csh.ssh < prev    next >
Text File  |  2005-03-03  |  567b  |  21 lines

  1. #
  2. # Check if a login was requested by a ssh. If this is
  3. # true and a locale was provided by the ssh the variable
  4. # SSH_SENDS_LOCALE is set to yes and will be exported
  5. # to all sub shells and processes.
  6. #
  7. if ( ${?SSH_TTY} ) then
  8.     set val=0
  9.     foreach lc (LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE        \
  10.         LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS \
  11.         LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL)
  12.     eval set val=\${\?$lc}
  13.     if ( $val != 0 ) then
  14.         setenv SSH_SENDS_LOCALE yes
  15.         unset lc val
  16.         break
  17.     endif
  18.     end
  19.     unset lc val
  20. endif
  21.