nushell/crates/nu-engine/src
Jakub Žádník 3b4baa31b6
Fix ls relative path & command argument path expansion (#757)
* Switch to short-names when the path is a relative_path (a dir) and exit with an error if the path does not exist

* Remove debugging print line

* Show relative filenames... It does not work yet for ls ../

* Try something else to fix relative paths... it works, but the ../ code part is not very pretty

* Add canonicalize check and remove code clones

* Fix the canonicalize_with issue pointed out by kubouch. Not sure the prefix_str is what kubouch suggested

* Fix the canonicalize_with issue pointed out by kubouch. Not sure the prefix_str is what kubouch suggested

* Add single-dot expansion to nu-path

* Move value path expansion from parser to eval

Fixes #745

* Remove single dot expansion from parser

It is not necessary since it will get expanded anyway in the eval.

* Fix ls to display globs with relative paths

* Use pathdiff crate to get relative paths for ls

Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2022-01-17 00:55:56 +11:00
..
call_ext.rs Plugin with evaluated call (#393) 2021-12-02 05:42:56 +00:00
column.rs move get_columns from the table_viewer to a central location (#628) 2021-12-31 17:39:58 -08:00
documentation.rs Some error improvements (#659) 2022-01-04 10:14:33 +11:00
env.rs Fixing captures (#723) 2022-01-12 15:06:56 +11:00
eval.rs Fix ls relative path & command argument path expansion (#757) 2022-01-17 00:55:56 +11:00
lib.rs Use only $nu.env.PWD for getting the current directory (#587) 2022-01-05 09:30:34 +11:00