What does the rcs option in ar do?

I read the man file, but that does not help. "rcs" is apparently the most popular option for switching to ar, but the meaning is not clear to me.

So, “c” means creating a new archive, but then why use “r”? which seems to mean "replace"? What will the s option do on the output?

+4
source share
2 answers

Reading the man page (for ar) is a good start:

with

Create an archive. The specified archive is always created if it was not there when you request an update. But a warning is issued if you do not specify in advance that you are going to create it using this modifier.

t

... ( ). q , , .

s

, . , . "ar s" ranlib.

POSIX, : GNU ar "-" .

, ( ). , , (, ranlib), .

POSIX ar -s BSD ( V ). ranlib (-s ). , POSIX ranlib, -s ranlib make , .

+8

: " ... ( )".

+1
source

All Articles