Skip to content
Snippets Groups Projects
  1. Sep 14, 2017
    • Brad Sawatzky's avatar
      Tweak 'interactive shell' fallback so it is more general · 5afc3f8a
      Brad Sawatzky authored
      - Apparently  $?loginsh is not a good indicator of whether tcsh is
        interactive (bad Google...) so we'll look for 'setup.csh' in the
        current directory and if it is present assume it is the hcana/
        directory.
      - The if($?prompt) clause should print some info text if you're
        interactive.  (Although it's not definitive either -- dammit csh.)
      
      -- Brad
      5afc3f8a
    • Brad Sawatzky's avatar
      Fix/clarify setup.csh behavior when called from script · 6957c8bc
      Brad Sawatzky authored
      - The underlying problem here is that $_ is assumed to contain the path
        to the sourced file, but that isn't true for any version of tcsh I've
        tried... (I guess it must have worked for some version of tcsh?)
        Anyway, that fails and $1 is also empty in the else clause so the
        script fails.
      
      - Reliably finding the path to a sourced file is next to impossible in
        tcsh, so just encourage/force people to pass a path to the script
        directory as an argument.
      
      -- Brad
      6957c8bc
  2. May 12, 2017
  3. Sep 08, 2014
  4. Aug 25, 2014
  5. Aug 20, 2014
  6. May 16, 2013
  7. May 15, 2013
  8. Apr 10, 2013
  9. May 02, 2012
  10. Feb 29, 2012
Loading