Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
How to run copied CLI commands with a leading “$” sign
(opens in new tab)
(stefanjudis.com)
2 points
stefanjudis
4y ago
2 comments
Save
Share
2 comments
2 comments · 1 top-level
top
newest
oldest
okdjnfweonfe
4y ago
· 1 in thread
should be the following otherwise args get splitted
"$@"
and should be the following because no reason to have a shell stay open after its finished doing work
exec "$@"
stefanjudis
OP
4y ago
Thanks. That's great feedback. I updated the post.
j
/
k
navigate · click thread line to collapse