Skip to content

fix: improve robustness of flow.sh by quoting paths - #3778

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
NishDs-06:first-pr
Jan 10, 2026
Merged

maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
NishDs-06:first-pr

Conversation

@NishDs-06

Copy link
Copy Markdown
Contributor

This PR improves the robustness of flow.sh by properly quoting variables and
paths, preventing failures when directories contain spaces. No functional
behavior is changed.

@maliberty

Copy link
Copy Markdown
Member

Thanks for contributing. You need to sign your commits (git commit -s) to pass DCO. See the details link by DCO for more info on amending your changes.

Signed-off-by: Nish <ndszz306@gmail.com>
@NishDs-06

Copy link
Copy Markdown
Contributor Author

Thanks for the heads-up! I’ve amended my commit.

@maliberty
maliberty merged commit 9234f3c into The-OpenROAD-Project:master Jan 10, 2026
5 checks passed
Comment thread flow/scripts/flow.sh
# Log the hash for this step. The summary "make elapsed" in "make finish",
# will not have all the .odb files for the bazel-orfs use-case.
$PYTHON_EXE $UTILS_DIR/genElapsedTime.py --match $1 -d $LOG_DIR | tee -a $(realpath $LOG_DIR/$1.log)
"$PYTHON_EXE" "$UTILS_DIR/genElapsedTime.py" --match "$1" -d "$LOG_DIR" \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not handling spaces in file names is endemic in ORFS, indeed in EDA tools. The problem is languages(tcl + make + bash) and, Linux and EDA legacy.

I'm unconvinced that it is a good idea to try to fix this.

There's no test in ORFS that space in filenames work.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that there are likely to be more issues but it didn't seem harmful by itself. I think it better to avoid having spacing in paths as a methodology.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants