1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-26 15:26:51 +01:00
nushell/crates/nu-command/tests/commands
Amirhossein Akhlaghpour c130ca1bc6
Fix: dst error on cp command ()
Fixes  

On `cp` commands there were two error which pass error message with
invalid detail about source and destination files . there error were for
Not exist file and Permission denied .

Examples:
  Before :
Copy `source_file_valid` to `destination_invalid_dir` throw this error ;
`copy file "/source_file_valid" failed: No such file or directory (os
error 2) `

 After this PR it will throw this if destination will be invalid :
`copying to destination "/destination_invalid_dir" failed: No such file
or directory (os error 2) `

it was for Permission denied too .

---------

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
2023-02-01 21:48:21 +01:00
..
assignment ++= appendAssign operator () () 2022-12-09 11:20:58 -05:00
date Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former () 2022-12-23 01:48:53 -05:00
hash_ Deprecate hash base64, extend decode and add encode commands () 2022-06-26 00:35:23 +03:00
math Use variable names directly in the format strings () 2023-01-29 19:37:54 -06:00
move_ Fix mv error message issues (arrows, Windows paths) () 2022-11-23 16:55:13 +13:00
network Fix typos and use more idiomatic assertions () 2023-01-15 15:03:32 +13:00
path add -n for path expand, so it doesn't follow symlink () 2022-08-10 08:43:56 -05:00
platform Use variable names directly in the format strings () 2023-01-29 19:37:54 -06:00
query Feature cleanup () 2022-11-22 16:58:11 -08:00
random
skip last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists () 2022-12-31 13:35:12 +02:00
str_ Remove math eval command () 2023-01-04 23:50:18 +01:00
take last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists () 2022-12-31 13:35:12 +02:00
url Feat/7725 url join () 2023-01-22 19:49:40 +01:00
alias.rs Expand Nushell's help system () 2022-12-30 17:44:37 +02:00
all.rs Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
any.rs Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
append.rs revert changes on prepend and append () 2023-01-02 17:09:55 -08:00
break_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
cal.rs return Error if get meet nothing and without "i" () 2022-12-31 13:27:09 +02:00
cd.rs Re-enable some good tests, remove some bad tests () 2023-01-28 14:56:47 -06:00
compact.rs
continue_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
cp.rs Fix: dst error on cp command () 2023-02-01 21:48:21 +01:00
def.rs def: make various punctuation misuses into errors () 2022-12-31 13:18:53 +02:00
default.rs Make get hole errors and cell path hole errors identical (improvement on ) () 2023-01-02 14:45:43 -08:00
do_.rs Fix pipeline stall in do during capture and remove excessive redirections () 2023-01-25 00:24:38 -05:00
drop.rs last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists () 2022-12-31 13:35:12 +02:00
each.rs Remove erroneous test () 2022-11-21 17:04:36 +01:00
echo.rs Require block params () 2022-02-17 06:40:24 -05:00
empty.rs Fix $in in blocks given to any and all () 2022-11-01 11:36:54 -07:00
enter.rs
error_make.rs add unspanned flag to error make, add tests () 2022-07-12 06:03:50 -05:00
every.rs
exec.rs Add "fall-through" signatures () 2022-12-22 00:33:26 +02:00
export_def.rs allow -h flags for export subcommands () 2022-08-02 10:26:16 -05:00
find.rs let find take linebreaks into account in Value::String () 2023-01-20 00:07:34 +01:00
first.rs Make stream info visible to users in describe () 2023-01-03 21:08:05 -08:00
flatten.rs str collect => str join () 2022-09-11 11:48:27 +03:00
for_.rs Fix typos and use more idiomatic assertions () 2023-01-15 15:03:32 +13:00
format.rs prevent panic with format command () 2022-12-19 13:10:02 +01:00
g.rs Make g - switch to the last used shell () 2022-08-06 10:11:03 -05:00
get.rs Make get hole errors and cell path hole errors identical (improvement on ) () 2023-01-02 14:45:43 -08:00
glob.rs Expose filtering by file type in glob () 2023-01-28 07:50:12 -06:00
group_by.rs
headers.rs Type validation for headers command () () 2022-11-09 16:43:24 -08:00
help.rs Allow main command to define top-level module command () 2023-01-22 21:34:15 +02:00
histogram.rs add quantile column () 2022-05-18 20:47:26 -05:00
insert.rs Allow iteration blocks to have an optional extra index parameter (alternative to -n flags) () 2022-11-21 14:35:11 +01:00
into_filesize.rs fix overflow on negative bytes () 2022-11-10 22:33:15 +01:00
into_int.rs Binary into int () 2022-07-04 06:31:50 +12:00
last.rs Make stream info visible to users in describe () 2023-01-03 21:08:05 -08:00
length.rs
let_.rs Limited mutable variables () 2022-11-11 19:51:08 +13:00
lines.rs Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
loop_.rs Fix typos and use more idiomatic assertions () 2023-01-15 15:03:32 +13:00
ls.rs Fix typos and use more idiomatic assertions () 2023-01-15 15:03:32 +13:00
merge.rs remove block input support in merge () 2022-11-23 17:01:27 +13:00
mkdir.rs mkdir change flag -s to -v () 2022-12-13 11:56:44 -05:00
mod.rs Make to text stream ListStreams () 2022-12-22 16:38:07 -08:00
mut_.rs Allow $env and mutable records to be mutated by = (closes ) () 2022-12-06 19:51:55 +02:00
n.rs Refactor shell switching related code () 2022-08-07 13:30:40 -05:00
nu_check.rs A set of fixes for stderr redirect () 2022-11-24 16:58:15 +13:00
open.rs Make get hole errors and cell path hole errors identical (improvement on ) () 2023-01-02 14:45:43 -08:00
p.rs Refactor shell switching related code () 2022-08-07 13:30:40 -05:00
parse.rs make parse -r columns return 0-indexed uncapitalised () 2023-01-29 07:34:34 -06:00
prepend.rs revert changes on prepend and append () 2023-01-02 17:09:55 -08:00
print.rs add -e flag to print, to print the value to stderr () 2022-07-02 09:54:49 -05:00
range.rs
redirection.rs Let redirection keep exit code () 2023-01-30 16:49:31 +01:00
reduce.rs Remove math eval command () 2023-01-04 23:50:18 +01:00
reject.rs Re-enable some good tests, remove some bad tests () 2023-01-28 14:56:47 -06:00
rename.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former () 2022-12-23 01:48:53 -05:00
return_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
reverse.rs last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists () 2022-12-31 13:35:12 +02:00
rm.rs make cd, cp, ls, mv, open and rm automatically strip ansi codes () 2022-08-04 06:59:20 -05:00
roll.rs Use variable names directly in the format strings () 2023-01-29 19:37:54 -06:00
rotate.rs str collect => str join () 2022-09-11 11:48:27 +03:00
run_external.rs Trim quotes when shelling out to cmd.exe () 2023-01-13 11:00:30 -08:00
save.rs Use variable names directly in the format strings () 2023-01-29 19:37:54 -06:00
select.rs Make get hole errors and cell path hole errors identical (improvement on ) () 2023-01-02 14:45:43 -08:00
semicolon.rs
seq_char.rs Simplify seq char () 2022-11-09 17:06:47 -08:00
seq.rs Make stream info visible to users in describe () 2023-01-03 21:08:05 -08:00
shells.rs Refactor shell listing related code () 2022-08-08 06:31:24 -05:00
sort_by.rs last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists () 2022-12-31 13:35:12 +02:00
sort.rs Add -n flag to sort (formerly only available on sort-by) () 2022-12-01 07:11:30 -06:00
source_env.rs Use variable names directly in the format strings () 2023-01-29 19:37:54 -06:00
split_by.rs
split_column.rs refactor: change column names from 'Column*' to 'column*' () 2022-02-19 19:26:47 -05:00
split_row.rs
table.rs nu-commands/table (table -e) Recognize limited space better () 2023-01-26 14:06:17 -06:00
to_text.rs Make to text stream ListStreams () 2022-12-22 16:38:07 -08:00
touch.rs chore: chrono_update () 2022-11-27 07:19:02 +13:00
transpose.rs Prevents duplicate fields in transpose -r () 2022-06-22 19:19:06 -05:00
try_.rs fix some typos () 2023-01-16 12:43:46 +01:00
uniq_by.rs uniq-by command () 2022-12-02 11:36:01 +01:00
uniq.rs uniq -i does not convert to lowercase () () 2022-11-23 15:46:20 -08:00
update.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
upsert.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
use_.rs Allow main command to define top-level module command () 2023-01-22 21:34:15 +02:00
where_.rs nu-commands/table (table -e) Recognize limited space better () 2023-01-26 14:06:17 -06:00
which.rs Don't assume external ls () 2022-03-24 16:42:41 +13:00
while_.rs Fix typos and use more idiomatic assertions () 2023-01-15 15:03:32 +13:00
with_env.rs Re-enable some good tests, remove some bad tests () 2023-01-28 14:56:47 -06:00
wrap.rs
zip.rs Use variable names directly in the format strings () 2023-01-29 19:37:54 -06:00