Skip to content

The --output trigger overwrites previously rendered file #6472

@snhansen

Description

@snhansen

Bug description

If I render a PDF document with the same name as the .qmd document, i.e. I get test.pdf from test.qmd, then any subsequent rendering using the --output trigger will overwrite test.pdf even though I specify a different name.

Steps to reproduce

Consider a simple document

---
format: pdf
---

Something

and the two commands

quarto render test.qmd
quarto render test.qmd --output test2.pdf

Expected behavior

I would expect two documents test.pdf and test2.pdf.

Actual behavior

I'm only getting the latter as the first is deleted during the second render.

Your environment

No response

Quarto check output

D:\quartotest\test>quarto check install

[>] Checking Quarto installation......OK
      Version: 1.4.309
      Path: C:\Users\au234616\AppData\Local\Programs\Quarto\bin
      CodePage: 1252

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfilesIssues related to temporary file locations, nonstandard output locations, etc

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions