Skip to content

rename nushell's cp command to cp-old making coreutils the default cp - #10678

Merged
fdncred merged 5 commits into
nushell:mainfrom
fdncred:rename_cp_to_cp_old
Oct 10, 2023
Merged

fdncred merged 5 commits into
nushell:mainfrom
fdncred:rename_cp_to_cp_old

Conversation

@fdncred

@fdncred fdncred commented Oct 10, 2023

Copy link
Copy Markdown
Contributor

Description

This PR renames nushell's cp command to cp-old to make room for ucp to be renamed to cp, making the coreutils version of cp the default for nushell. After some period of time, we should remove cp-old entirely.

User-Facing Changes

Tests + Formatting

After Submitting

@sholderbach sholderbach added category:deprecation Related to the deprecation of commands/features/options A:coreutils-uutils Changes relating to coreutils/uutils labels Oct 10, 2023
@fdncred

fdncred commented Oct 10, 2023

Copy link
Copy Markdown
Contributor Author

Let's go!

@fdncred
fdncred merged commit 0ba81f1 into nushell:main Oct 10, 2023
@fdncred
fdncred deleted the rename_cp_to_cp_old branch October 10, 2023 23:13
@fdncred

fdncred commented Oct 11, 2023

Copy link
Copy Markdown
Contributor Author

/cc @dmatos2012 @tertsdiepraam the default cp is now uutils/coreutils cp!

amtoine pushed a commit to amtoine/dotfiles that referenced this pull request Oct 11, 2023
related to
- nushell/nushell#10678

`ucp` is replacing `cp` for good.
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
…nushell#10678)

# Description

This PR renames nushell's `cp` command to `cp-old` to make room for
`ucp` to be renamed to `cp`, making the coreutils version of `cp` the
default for nushell. After some period of time, we should remove
`cp-old` entirely.

# User-Facing Changes
<!-- List of all changes that impact the user experience here. This
helps us keep track of breaking changes. -->

# Tests + Formatting
<!--
Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used` to
check that you're using the standard code style
- `cargo test --workspace` to check that all tests pass (on Windows make
sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:coreutils-uutils Changes relating to coreutils/uutils category:deprecation Related to the deprecation of commands/features/options

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants