Commit 35a211b0c5

35a211b0c5a771954b080cfc0ea6d3407369e0c0

parent: f95dd8ca87

Unregistered key

vaw <git@nlih.de> · 2026-09-15 19:32 UTC
committer: <noreply@github.com>

Expand '~' and env variables in `:upload` argument (#702)

Layout: unified · split

src/commands.rs +5 −1
@@ -936,7 +936,11 @@ fn iamb_upload(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult {
936936 return Result::Err(CommandError::InvalidArgument);
937937 }
938938
939 let sact = SendAction::Upload(args.remove(0), None);
939 let path = args.remove(0);
940 let expanded_path =
941 shellexpand::full(&path).map_err(|e| CommandError::ParseFailed(e.to_string()))?;
942
943 let sact = SendAction::Upload(expanded_path.into_owned(), None);
940944 let iact = IambAction::from(sact);
941945 let step = CommandStep::Continue(iact.into(), ctx.context.clone());
942946