mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-27 01:54:25 +08:00
redirection.rs: make redirection spec fields public like in C++
This commit is contained in:
parent
11e16ef6df
commit
807d1578c3
@ -93,15 +93,15 @@ pub struct RedirectionSpec {
|
|||||||
/// The redirected fd, or -1 on overflow.
|
/// The redirected fd, or -1 on overflow.
|
||||||
/// In the common case of a pipe, this is 1 (STDOUT_FILENO).
|
/// In the common case of a pipe, this is 1 (STDOUT_FILENO).
|
||||||
/// For example, in the case of "3>&1" this will be 3.
|
/// For example, in the case of "3>&1" this will be 3.
|
||||||
fd: RawFd,
|
pub fd: RawFd,
|
||||||
|
|
||||||
/// The redirection mode.
|
/// The redirection mode.
|
||||||
mode: RedirectionMode,
|
pub mode: RedirectionMode,
|
||||||
|
|
||||||
/// The target of the redirection.
|
/// The target of the redirection.
|
||||||
/// For example in "3>&1", this will be "1".
|
/// For example in "3>&1", this will be "1".
|
||||||
/// In "< file.txt" this will be "file.txt".
|
/// In "< file.txt" this will be "file.txt".
|
||||||
target: WString,
|
pub target: WString,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RedirectionSpec {
|
impl RedirectionSpec {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user