File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 709
709
# If true, print warnings associated with shell startup sequence, when using
710
710
# tools such as rez-env. For example, if the target shell type is "sh", and
711
711
# the "rcfile" param is used, you would get a warning, because the sh shell
712
- # does not support rcfile.
712
+ # does not support rcfile. Also recieve warnings or errors if incompatible shell
713
+ # settings are used.
713
714
warn_shell_startup = False
714
715
715
716
# If true, print a warning when an untimestamped package is found.
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ def get_syspaths(cls):
109
109
return cls .syspaths
110
110
111
111
def validate_env_sep_map (self ):
112
+ # Return early if validation is disabled.
113
+ if not config .warn ("shell_startup" ):
114
+ return
115
+
112
116
env_var_seps = self .env_sep_map
113
117
shell = self .name ()
114
118
shell_setting = self .shell_env_sep_map_setting
You can’t perform that action at this time.
0 commit comments