File tree 1 file changed +5
-5
lines changed
test/standalone/windows_bat_args 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,15 @@ pub fn main() anyerror!void {
77
77
var path_env = std .process .EnvMap .init (allocator );
78
78
errdefer path_env .deinit ();
79
79
// No escaping
80
- try path_env .put ("PATH " , "123" );
81
- // Some possible escaping of %PATH % that could be expanded
80
+ try path_env .put ("FOO " , "123" );
81
+ // Some possible escaping of %FOO % that could be expanded
82
82
// when escaping cmd.exe meta characters with ^
83
- try path_env .put ("PATH ^" , "123" ); // only escaping %
84
- try path_env .put ("^P^A^T^H ^" , "123" ); // escaping every char
83
+ try path_env .put ("FOO ^" , "123" ); // only escaping %
84
+ try path_env .put ("^F^O^O ^" , "123" ); // escaping every char
85
85
break :path_env path_env ;
86
86
};
87
87
defer path_env .deinit ();
88
- try testExec (allocator , &.{"%PATH %" }, & path_env );
88
+ try testExec (allocator , &.{"%FOO %" }, & path_env );
89
89
90
90
// Ensure that none of the `>file.txt`s have caused file.txt to be created
91
91
try std .testing .expectError (error .FileNotFound , tmp .dir .access ("file.txt" , .{}));
You can’t perform that action at this time.
0 commit comments