Add comment

This commit is contained in:
Kira 2025-03-24 23:24:54 +01:00
parent df798b657c
commit c506479c5a

View File

@ -329,6 +329,9 @@ fn flatten_expression_into(
if let Expr::String(..) | Expr::GlobPattern(..) = &head.expr { if let Expr::String(..) | Expr::GlobPattern(..) = &head.expr {
output.push(( output.push((
head.span, head.span,
// If this external call is through an alias, then head.span points to the
// name of the alias, but we also need the name of the aliased command. We
// recover this from the span referenced by head.span_id.
FlatShape::External(working_set.get_span(head.span_id)), FlatShape::External(working_set.get_span(head.span_id)),
)); ));
} else { } else {