User: Password:
|
|
Subscribe / Log in / New account

Standards, the kernel, and Postfix

Standards, the kernel, and Postfix

Posted Aug 21, 2008 9:10 UTC (Thu) by tomgj (guest, #50537)
Parent article: Standards, the kernel, and Postfix

The examples for link(2) and symlink(2) currently both have the arguments the wrong way round. You have

link("/link/to/foo", "/path/to/foo");
but it should be
link("/path/to/foo", "/link/to/foo")


(Log in to post comments)

Standards, the kernel, and Postfix

Posted Aug 21, 2008 9:17 UTC (Thu) by liljencrantz (guest, #28458) [Link]

Interesting. I always though the ln command had the argument in the wrong order, and it turns
out that the link function switches the order...

Standards, the kernel, and Postfix

Posted Aug 28, 2008 6:05 UTC (Thu) by SEMW (subscriber, #52697) [Link]

Huh? They both have the same order: the first argument is the target, and the second, the name of the new link being created, for both ln and link.

(That said, I've always had a bit of a liking for dd-style syntax; means you don't have to remember the order at all.)

Standards, the kernel, and Postfix

Posted Aug 21, 2008 12:21 UTC (Thu) by jake (editor, #205) [Link]

> The examples for link(2) and symlink(2) currently both have the arguments
> the wrong way round.

Gah!  Fixed now, thanks!

jake


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds