frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

cp: -r or -R?

https://movq.de/blog/postings/2026-09-30/0/POSTING-en.html
30•zdw•2d ago

Comments

bsoqk•1h ago
It's "ditto", not "dito"
Waterluvian•49m ago
As in the Pokémon, not the Philippines telecom company.
Yaqub_W•30m ago
Much easier to press a key twice than to hunt for é for most people. I get your point though
mqus•57m ago
would you be safe in using --recursive always? (e.g. shell scripts)
olowe•47m ago
There are implementations of cp out in the wild that do not recognise the --recursive flag. OpenBSD was mentioned in the article and there’s also busybox cp https://busybox.net/downloads/BusyBox.html
hnfong•32m ago
Double dash long options are basically a GNU extension. BSD utilities generally don't support them. Apparently macOS does not either (since it's based off of FreeBSD)
JdeBP•17m ago
macOS was based off NextBSD, not FreeBSD.

And the received wisdom about long options in the BSDs is a quarter of a century out of date. When the BSDs gained a getopt_long() in their C libraries thanks to Klausner and Baron, long options quietly started appearing. This process has been gradually and quietly on-going for the whole of the 21st century.

dotancohen•5m ago
I believe that -R is the safe works-as-expected-everywhere option.
drhagen•29m ago
It always seemed like the recursive flag of cp was an implementation detail leaking into the UI. Like, I get that copying a file requires creating more than one inode, but...so? Eventually, graphical OSes agree with me—copy/paste works the same on folders as it does on files.
dotancohen•8m ago
Thirteen years ago I asked the same question:

https://unix.stackexchange.com/questions/82485/when-wouldnt-...

It seems that recursive by default would have been much more intuitive.

5555watch•23m ago
On a somewhat related note, I really hate that in scp -r and -R mean entirely different things.
aulin•15m ago
How about port that is lowercase in ssh and uppercase in scp?
pluc•6m ago
The worst is when things behave different when you give them `~/somedir` vs `~/somedir/`. I think it's rsync that does that
mkl•20m ago
-a

Not sure why you wouldn't want to preserve timestamps, links, etc. by default.

pasc1878•16m ago
Use rsync instead
trucks-refinish•12m ago
rsync unfortunately doesn't do relinking at all, so I can't use it as a generic replacement for cp.
bariumbitmap•8m ago
This blog post is odd because it keeps on hinting about a difference between `-r' and `-R' and links to the source code but never actually says what it is. I'll quote the OpenBSD manual that the post mentions but does not link to for some reason:

> Historic versions of the cp utility had an -r option. This implementation supports that option; however, its use is strongly discouraged, as it does not correctly copy special files, symbolic links or FIFOs.

https://man.openbsd.org/cp

GitHub's new dashboard experience now the default

https://github.blog/changelog/2026-10-01-new-dashboard-experience-now-the-default/
29•vanyauhalin•2h ago•36 comments

Newgrounds.com – A community of games, music, and art

https://www.newgrounds.com/
266•azhenley•11h ago•74 comments

cp: -r or -R?

https://movq.de/blog/postings/2026-09-30/0/POSTING-en.html
30•zdw•2d ago•19 comments

Court agrees with EFF: Utah's VPN law demands a technical impossibility

https://www.eff.org/deeplinks/2026/10/court-agrees-eff-utahs-vpn-law-demands-technical-impossibility
661•hn_acker•1d ago•322 comments

Apple Pass Designer

https://developer.apple.com/pass-designer/
451•soheilpro•17h ago•277 comments

Great Question (YC W21) Is Hiring Product Engineers in Canada (Remote)

https://www.ycombinator.com/companies/great-question/jobs/agEqBYD-product-engineer-ai-full-stack
1•nedwin•6m ago

Mike Tomlin spent 12 years building a Minecraft city

https://www.nytimes.com/athletic/7648198/2026/10/01/mike-tomlin-minecraft-nfl-coach/
498•CoryOndrejka•1d ago•115 comments

An Update on Orion for Linux and Windows

https://blog.kagi.com/update-orion-linux-windows
74•pentagrama•7h ago•38 comments

Cloudflare OHTTP gateway

https://blog.cloudflare.com/announcing-cloudflare-ohttp-gateway/
99•est•8h ago•25 comments

A 12-year sequence of telescope images of a star and four planets orbiting

https://bsky.app/profile/theplanetaryguy.com/post/3mwucf5ert22f
307•mariuz•1d ago•58 comments

The Forgetful CPU (Linux on M4)

https://yuka.dev/blog-2026-10-02-linux-m4.html
235•signa11•21h ago•154 comments

Loss of cell identity drives human aging: Two new papers

https://erictopol.substack.com/p/loss-of-cell-identity-drives-human
272•bookofjoe•1d ago•89 comments

From the creator of Redis; run LLM locally with ds4

https://dwarfstar.sh/
269•fibo•18h ago•69 comments

FLUX 3 Image

https://bfl.ai/models/flux-3-image
361•minimaxir•1d ago•79 comments

Greg Kroah-Hartman – Security in the LLM Age [video]

https://www.youtube.com/watch?v=NnV_cWeoo5Q
255•usernomdeguerre•1d ago•83 comments

With most information hidden, the game Stratego had stumped AI until now

https://arstechnica.com/science/2026/10/ai-finally-beat-the-best-stratego-player-in-history-and-d...
226•PaulHoule•21h ago•111 comments

Muse Gadgets

https://gadgets.muse.ai
205•anant•16h ago•92 comments

Extra Big Ass Intelligence

https://www.extrabigassintelligence.com/
320•34679•8h ago•72 comments

Updates to Full Disk Access in macOS

https://developer.apple.com/news/?id=p6zjojqw
214•notfirstpost•16h ago•145 comments

Show HN: Giving Opus 5.5 a simulated paint canvas

https://stillwet.art/
292•alstonite•1d ago•94 comments

Sites in ChatGPT

https://chatgpt.com/features/sites/
292•polvi•1d ago•265 comments

Scientists invent underwater umbrellas to protect coral reefs

https://gizmodo.com/scientists-invent-underwater-umbrellas-to-protect-coral-reefs-and-it-appears-...
11•giuliomagnifico•1d ago•4 comments

The Legend of von Neumann (1973) [pdf]

https://gwern.net/doc/math/1973-halmos.pdf
290•suopspaces•22h ago•155 comments

One month coding with GLM 5.3 Flash

https://wagtail.org/blog/one-month-on-glm-53-flash/
169•ThibWeb•20h ago•132 comments

Make Tmux the OS

https://matduggan.com/what-does-my-dream-os-ui-look-like/
68•weaksauce•16h ago•33 comments

More like SC-Forth-thousand, am I right?

https://www.leadedsolder.com/2026/10/01/rc2026-10-sg1000-forth-port.html
12•stevekemp•1d ago•1 comments

The Nintendo 64 Partner-N64 Development Kit

https://www.behindthecode.ca/partner-n64pc-dev-kit/
49•paulgerhardt•17h ago•8 comments

Venice’s failed war against Constantinople led to the first bond market

https://bigthink.com/books/a-fabulous-debt/
132•RickJWagner•22h ago•39 comments

Show HN: Offrun – manage every coding agent from one workspace

https://offrun.dev/
6•arunbhatia•3h ago•2 comments

Billions of triangles redux

https://zeux.io/2026/09/30/billions-of-triangles-redux/
48•ibobev•2d ago•1 comments