From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; NetCaptor 6.5.0B7) Description of problem: The 'ar' command prepend 'tmp-' prefix for name of temporary file when creating archive using CREATE command of mri-script ('-M' option). 'echo CREATE ../../test.a | ar -M' produce error message ' Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. 'echo CREATE /tmp/test.a | ar -M' Actual Results: Error Message: Can't open output archive tmp-/tmp/test.a Expected Results: create an empty archive '/tmp/test.a' silently Additional info: function 'ar_open()' in arsup.c is problematic. should prepend 'tmp-' prefix to base name of path name. patch at the attached URL does not work when path name contains more than single path separator ('/' or '\').
Expected Results was not correct: '/tmp/test.a' will not be created
See http://sources.redhat.com/ml/binutils/2001-10/msg00337.html BTW: If you want to create empty /tmp/test.a archive, you need to do: echo -e 'CREATE /tmp/test.a\nSAVE' | ar -M (SAVE is important).
Not resolved in 7.2 either
echo -e 'CREATE /tmp/test.a\nSAVE' | ar -M definitely works in current binutils, and as mentioned above without SAVE the command doesn't write any output.