Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cp errors out on OSX #6

Closed
igrigorik opened this issue Dec 10, 2014 · 9 comments
Closed

cp errors out on OSX #6

igrigorik opened this issue Dec 10, 2014 · 9 comments

Comments

@igrigorik
Copy link

isspell_fixer: actual file: ../w3c/resource-hints//index.html
misspell_fixer: temp file: ../w3c/resource-hints//index.html.72361
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
misspell_fixer: nothing changed
misspell_fixer: actual file: ../w3c/resource-hints//README.md
misspell_fixer: temp file: ../w3c/resource-hints//README.md.72367
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
misspell_fixer: nothing changed
misspell_fixer: Done.

Blame old (default) bash, but.. still, would be nice if it worked :)

@vlajos
Copy link
Owner

vlajos commented Dec 10, 2014

Hi,
I think the cp --attributes-only fails. It is used only for keep the original attributes of the files, so I think apart from this the functionality seems to be intact.
Maybe you could try with -fr (after creating a backup). Fast mode doesn't rely on "cp --attributes-only".

And could you please send maybe an exact version of your cp?

@igrigorik
Copy link
Author

Yep, -fr worked fine. Exact version.. good question: how do I check that? :)

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/cp.1.html

@jimmydjwu83
Copy link

misspell_fixer

@cihangir
Copy link

i had the same illegal option problem but when i use -frn it errors too

➜  Documents  ./misspell_fixer/misspell_fixer.sh -frn ./dir
misspell_fixer: -f Enabling fast mode.
misspell_fixer: -r Enabling real run. Overwrite original files!
misspell_fixer: -n Disabling backups.
misspell_fixer: Target directories: ./dir
misspell_fixer: Starting script
sed: RE error: illegal byte sequence
misspell_fixer: Done.

head 2d16e17

@vlajos
Copy link
Owner

vlajos commented Dec 22, 2014

@cihangir It seems my previous (already deleted) comment was wrong. This seems to be more relevant: http://stackoverflow.com/questions/11287564/getting-sed-error-illegal-byte-sequence-in-bash
I will add this environment options later.

vlajos added a commit that referenced this issue Dec 26, 2014
@vlajos
Copy link
Owner

vlajos commented Dec 26, 2014

@igrigorik , @cihangir I just commited a patch to fix the original "illegal option -- -" problem. I don't have access to OSX, so I am not 100% sure it works. Could you please test it? Thank you.

@vlajos
Copy link
Owner

vlajos commented Dec 26, 2014

@cihangir And commited the related envionment variable resets also. Please test it. Thank you.

@jimmydjwu83
Copy link

help me about my iphone 3gs be locked

@vlajos
Copy link
Owner

vlajos commented Jan 12, 2015

@jimmydjwu83 Sorry, but I haven't any knowledge about iphones.

@vlajos vlajos closed this as completed Jan 12, 2015
vlajos pushed a commit that referenced this issue Feb 17, 2018
try to use shunit2 from github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants