Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gspr
on March 29, 2021
|
parent
|
context
|
favorite
| on:
Terminal escape sequences in Git commit email fiel...
You can. Use your favorite programming language's interface for listing the content of a directory!
`ls` is for you, the human.
enriquto
on March 29, 2021
[–]
In C, my favourite language, I would do this:
system("ls");
cyberpunk
on March 29, 2021
|
parent
[–]
Please never do this; do not use system, it executes $SHELL and you can fall victim to various PATH munging attacks. :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
`ls` is for you, the human.