forked from extern/nushell
Use 'table' on scripts and -c commands (#4377)
* Use 'table' on scripts and -c commands * Fix tests * Oops, missed a spot
This commit is contained in:
@ -9,7 +9,7 @@ fn returns_path_joined_with_column_path() {
|
||||
r#"
|
||||
echo [ [name]; [eggs] ]
|
||||
| path join spam.txt -c [ name ]
|
||||
| get name
|
||||
| get name.0
|
||||
"#
|
||||
));
|
||||
|
||||
|
@ -107,7 +107,7 @@ fn parses_column_path_extension() {
|
||||
echo [[home, barn]; ['home/viking/spam.txt', 'barn/cow/moo.png']]
|
||||
| path parse -c [ home barn ]
|
||||
| get barn
|
||||
| get extension
|
||||
| get extension.0
|
||||
"#
|
||||
));
|
||||
|
||||
|
@ -20,6 +20,7 @@ fn splits_correctly_single_path() {
|
||||
'home/viking/spam.txt'
|
||||
| path split
|
||||
| last
|
||||
| get 0
|
||||
"#
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user