作者anfranion (南‧生命的意义是经历)
看板EE_DSnP
标题[查查] ar cr
时间Wed Sep 30 10:02:32 2009
查到的资料在下面,刚刚研究了一下为什麽不是-rc @@
推测是说,因为c是可以直接下(不需要-)
r又合并使用,所以直接接在後面就认得了,比-rc简单
所以就变成cr了 (推测啦)
主要的功能就是确保要产生的Archive存在,并且如果早已存在就取代之
没加也没差的话应该就只是他需要确保的条件不成立而已:P
****
man ar的结果
[generic modifiers]
c
Create the archive. The specified archive is always created if it did not
exist, when you request an update. But a warning is issued unless you specify
in advance that you expect to create it, by using this modifier.
[commands]
r
Insert the files member... into archive (with replacement). This
operation differs from q in that any previously existing members are deleted
if their names match those being added.
If one of the files named in member... does not exist, ar displays an
error message, and leaves undisturbed any existing members of the archive
matching that name.
By default, new members are added at the end of the file; but you may use
one of the modifiers a, b, or i to request placement relative to some
existing member.
The modifier v used with this operation elicits a line of output for each
file inserted, along with one of the letters a or r to indicate whether the
file was appended (no old member deleted) or replaced.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.4.234
1F:推 dryman:GJ!! 09/30 11:48
2F:推 ric2k1:Push! 09/30 16:56