Skip to content
Snippets Groups Projects
  • Brad Sawatzky's avatar
    6957c8bc
    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
    History
    Fix/clarify setup.csh behavior when called from script
    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