• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A change with the -n option for cp in Mac OS X 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A change with the -n option for cp in Mac OS X 10.5


  • Subject: A change with the -n option for cp in Mac OS X 10.5
  • From: Eric Gorr <email@hidden>
  • Date: Mon, 5 Nov 2007 14:06:19 -0500

Not sure if there is a more appropriate mailing list (if there is, please let me know), but since I am using cp -n in a Run Script build phase, I figured this was close enough.

In any case, under 10.4.10, when executing cp -n, cp would return an exit status of 0 if the file you told it to copy existed or not.

Under 10.5, cp will return an exit status of 1 if the file already exists and one uses the -n option.

I was just wondering if:

1. 10.4.10 had a bug
2. 10.5 has a bug
3. the definition of how the -n option is supposed to work has changed

It seems strange that cp would return an exit status of 1 now if the file already exists. After all, the command will do exactly what it is supposed to do and not copy the file.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: A change with the -n option for cp in Mac OS X 10.5
      • From: Eric Gorr <email@hidden>
  • Prev by Date: Re: Project Root and SCM
  • Next by Date: Re: Inserting a new line after the current line
  • Previous by thread: Re: Project Root and SCM
  • Next by thread: Re: A change with the -n option for cp in Mac OS X 10.5
  • Index(es):
    • Date
    • Thread