mirror of
https://github.com/nushell/nushell
synced 2025-01-14 22:24:54 +00:00
parent
49cbc30974
commit
7c9a78d922
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ pub fn eval_call(
|
||||||
call: &Call,
|
call: &Call,
|
||||||
input: PipelineData,
|
input: PipelineData,
|
||||||
) -> Result<PipelineData, ShellError> {
|
) -> Result<PipelineData, ShellError> {
|
||||||
|
if let Some(ctrlc) = &engine_state.ctrlc {
|
||||||
|
if ctrlc.load(core::sync::atomic::Ordering::SeqCst) {
|
||||||
|
return Ok(Value::Nothing { span: call.head }.into_pipeline_data());
|
||||||
|
}
|
||||||
|
}
|
||||||
let decl = engine_state.get_decl(call.decl_id);
|
let decl = engine_state.get_decl(call.decl_id);
|
||||||
|
|
||||||
if !decl.is_known_external() && call.named_iter().any(|(flag, _, _)| flag.item == "help") {
|
if !decl.is_known_external() && call.named_iter().any(|(flag, _, _)| flag.item == "help") {
|
||||||
|
|
Loading…
Reference in a new issue