mirror of
https://github.com/nushell/nushell.git
synced 2025-05-30 22:57:07 +02:00
added parent path test to windows examples
This commit is contained in:
parent
2c814a43c3
commit
4a06821a5e
@ -113,6 +113,12 @@ path."#
|
|||||||
example: r"'eggs\bacon\sausage\spam' | path relative-to 'eggs\bacon\sausage'",
|
example: r"'eggs\bacon\sausage\spam' | path relative-to 'eggs\bacon\sausage'",
|
||||||
result: Some(Value::test_string(r"spam")),
|
result: Some(Value::test_string(r"spam")),
|
||||||
},
|
},
|
||||||
|
Example {
|
||||||
|
description: "Find a relative path that requires parent directory symbols",
|
||||||
|
example: r"'a\b\c' | path relative-to 'a\d\e'",
|
||||||
|
|
||||||
|
result: Some(Value::test_string(r"..\..\b\c")),
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user