mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 20:34:07 +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.
|
||||
/// In the common case of a pipe, this is 1 (STDOUT_FILENO).
|
||||
/// For example, in the case of "3>&1" this will be 3.
|
||||
fd: RawFd,
|
||||
pub fd: RawFd,
|
||||
|
||||
/// The redirection mode.
|
||||
mode: RedirectionMode,
|
||||
pub mode: RedirectionMode,
|
||||
|
||||
/// The target of the redirection.
|
||||
/// For example in "3>&1", this will be "1".
|
||||
/// In "< file.txt" this will be "file.txt".
|
||||
target: WString,
|
||||
pub target: WString,
|
||||
}
|
||||
|
||||
impl RedirectionSpec {
|
||||
|
|
Loading…
Reference in New Issue
Block a user