惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

Julia Evans: TIL

You don't have to close <p> or <li> tags Advice for writing alt text Al Sweigart's Python books are available for free Resources for upgrading Django esbuild can build css In CSS you can populate `content:` with a `data-` attribute fx: a jq replacement You can use `fzf` to review git commits pip install --user can override system libraries You can run `tty` to see your current TTY CSS supports nested selectors now! strace's `--tips` `**` works for globbing in the shell Tiny IP-KVM devices exist Two ways the mouse wheel works in the terminal why the text disappers from my PDF when I print it Emoji Kitchen strace has a --stack-traces option Some programming languages buffer stdout and some don't
Environment variables with no equals sign
Julia Evans · 2026-05-31 · via Julia Evans: TIL

« back to all TILs

Environment variables with no equals sign

I learned a long time ago that environment variables are literally represented as the string NAME=value (you can see this by running cat /proc/self/environ on Linux).

But what I never thought about until Kamal mentioned it to me yesterday was that you can technically put any string in your environment, it doesn’t have to have an equals sign.

Here’s a C program that does that and runs env:

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

int main() {
    char *weird_env[] = {
        "NAME=value",
        "banana",
        NULL
    };
   char *argv[] = {"/usr/bin/env", NULL};
   execve("/usr/bin/env", argv, weird_env);
}

It prints out

NAME=value
banana

I don’t think this has any real practical implications. If you run a shell like bash with this “banana” variable it’ll just ignore it.