We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mistakenly thought echo was a native program we could rely on...
Noticed that it functions like this currently:
echo $PATH $PATH
Found this stackoverflow post when looking into this problem
Furthermore I found this function in Zig std
Looking at some other shells (bash & fish) we may want to expand environment variables before executing the utility.
The text was updated successfully, but these errors were encountered:
const std = @import("std"); pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; const allocator = gpa.allocator(); const env = try std.process.getEnvMap(allocator); var it = env.hash_map.iterator(); while (it.next()) |entry| { const key = entry.key_ptr.*; const value = entry.value_ptr.*; std.debug.print("{s}: {s}\n", .{key, value}); } std.debug.print("{s}", .{env.get("NAME").?}); }
Was messing around and came with the preceding snippet, should be useful in argument expansion.
Sorry, something went wrong.
No branches or pull requests
Mistakenly thought echo was a native program we could rely on...
Noticed that it functions like this currently:
Found this stackoverflow post when looking into this problem
Furthermore I found this function in Zig std
Looking at some other shells (bash & fish) we may want to expand environment variables before executing the utility.
The text was updated successfully, but these errors were encountered: