Really just to permit test runs under MS Windows --- not that one'd ever want to run it for real under that OS!
Linux:
128 $this_hostname = hostname -s;
Windows (because Windows hostname doesn't accept "-s"):
128 $this_hostname = hostname;
Linux:
141 $this_username =~ s/^\s+|\s+$//g;
Windows (because Windows whoami may include domain-names):
141B $this_username =~ s/^.+\(.+)$/\1/g;
Add support for forcing file and directory names to be emitted even if they don't exists in the file system. So, assuming we parsing a parameter specifying such behavior ("--no-require-existence")captured in $check_existence_flag:
Linux:
170: if (CheckComboFile($seg_string, $this_combo)) {
Windows:
170: if ((!check_existence_flag) || CheckComboFile($seg_string, $this_combo)) {
Really just to permit test runs under MS Windows --- not that one'd ever want to run it for real under that OS!
Linux:
128 $this_hostname =
hostname -s;Windows (because Windows hostname doesn't accept "-s"):
128 $this_hostname =
hostname;Linux:$this_username =~ s/^\s+|\s+$ //g;$this_username =~ s/^.+\(.+)$ /\1/g;
141
Windows (because Windows whoami may include domain-names):
141B
Add support for forcing file and directory names to be emitted even if they don't exists in the file system. So, assuming we parsing a parameter specifying such behavior ("--no-require-existence")captured in $check_existence_flag:
Linux:
170: if (CheckComboFile($seg_string, $this_combo)) {
Windows:
170: if ((!check_existence_flag) || CheckComboFile($seg_string, $this_combo)) {