#[repr(u8)]pub enum Personality {
Zsh = 0,
Bash = 1,
Ksh93 = 2,
Mksh = 3,
Pdksh = 4,
Sh = 5,
Dash = 6,
Csh = 7,
}Expand description
Which shell zshrs is standing in for. Selected once by the binary’s
CLI mode application (--bash, --ksh, an argv[0] symlink, …) and
read wherever behavior forks per drop-in.
This is deliberately NOT derived from the emulation bitmap:
Src/init.c’s parseopts_setemulate re-derives that from argv[0]
during zsh_main, which for zshrs is always the zshrs binary, so the
bitmap is reset to zsh on the interactive path. The personality is the
authoritative record of what the user asked for.
Variants§
Zsh = 0
Native zshrs, and the --zsh drop-in: zsh’s own startup files.
Bash = 1
--bash.
Ksh93 = 2
--ksh — the ksh93 line.
Mksh = 3
--mksh — MirBSD ksh.
Pdksh = 4
--pdksh — the Public Domain / OpenBSD ksh line.
Sh = 5
--sh / --posix.
Dash = 6
--dash / --ash.
Csh = 7
--csh.
Implementations§
Source§impl Personality
impl Personality
Sourcepub fn emulate_name(self) -> &'static str
pub fn emulate_name(self) -> &'static str
The emulate personality name this drop-in installs — the same
string the binary passes to crate::ported::options::emulate.
Trait Implementations§
Source§impl Clone for Personality
impl Clone for Personality
Source§fn clone(&self) -> Personality
fn clone(&self) -> Personality
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Personality
Source§impl Debug for Personality
impl Debug for Personality
impl Eq for Personality
Source§impl PartialEq for Personality
impl PartialEq for Personality
impl StructuralPartialEq for Personality
Auto Trait Implementations§
impl Freeze for Personality
impl RefUnwindSafe for Personality
impl Send for Personality
impl Sync for Personality
impl Unpin for Personality
impl UnsafeUnpin for Personality
impl UnwindSafe for Personality
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more