-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
{de,}activate: Remove BSD-ism from sed calls #4249
Conversation
The `-E` flag only works on macOS (and some *BSD I guess). In GNU sed, the flag is `-r`. These flags turn on 'extended regular expressions'. Extended regular expressions were only needed in one of the three invocations (the other case where initially it looked like it serves a purpose removed the `:` only to put it back again. The case that did make use of extended regular expressions is rewritten to use sed 'chaining' instead. I could've added code to determine which sed is being used but macOS sed does not provide a `--version` flag and even if it did, calling it twice would add the overhead of another process invocation.
4.2.14 doesn't work on Linux (was it even tested?!). Please merge this to 4.3.x too. |
I cannot use |
Yes, of course it was tested. In several ways by several people. I actually questioned the `-E` flag, but google convinced me it was safe across distros. I must have mis-interpreted. We'll get another release out today.
… On Jan 10, 2017, at 5:48 AM, Ray Donnelly ***@***.***> wrote:
I cannot use python setup.py install to work install my fix for this. Issue filed at #4251
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If this was tested, can you please fix your tests? |
|
your tests fail here. And I'm fixing this, but... https://www.gnu.org/software/sed/manual/sed.txt
|
That conda isn't corrupting PATH isn't something I have any tests for. Unfortunately 'real' Linuxes all seem to use sed <= 4.2.2. Documentation on GNU's website isn't a substitute for actually checking. |
FYI, there has been exactly one release of GNU sed with this feature, sed 4.3, release on 4th Jan 2017. |
closing in lieu of #4257 |
Hi there, thank you for your contribution to Conda! This pull request has been automatically locked since it has not had recent activity after it was closed. Please open a new issue or pull request if needed. |
The
-E
flag only works on macOS (and some *BSD I guess). In GNU sed, the flag is-r
. These flags turn on 'extended regular expressions'.Extended regular expressions were only needed in one of the three invocations (the
other case where initially it looked like it serves a purpose removed the
:
onlyto put it back again).
The case that did make use of extended regular expressions is rewritten to use sed
'chaining' instead. I could've added code to determine which sed is being used but
macOS sed does not provide a
--version
flag and even if it did, calling it twicewould add the overhead of another process invocation.