Closed yannk closed 8 months ago
I do not use sets, and status fails on displaying those because nextopt poudriere shell builtin chokes on the default value of the set: -.
status
nextopt
-
$ poudriere status -a =>> Warning: Looking up all matching builds. This may take a while. mapfile_write: Illegal option - =>> Error: mapfile_write
diff --git a/src/share/poudriere/include/display.sh b/src/share/poudriere/include/display.sh index b4d480a7..898f9579 100644 --- a/src/share/poudriere/include/display.sh +++ b/src/share/poudriere/include/display.sh @@ -108,7 +108,7 @@ display_add() { IFS="${DISPLAY_SEP}" line="$@" unset IFS - mapfile_write "${_DISPLAY_MAPFILE}" "${line}" || + mapfile_write "${_DISPLAY_MAPFILE}" -- "${line}" || err ${EX_SOFTWARE} "mapfile_write" }
I'm seeing the same thing. The proposed patch does help.
Prerequisites
Describe the bug
I do not use sets, and
status
fails on displaying those becausenextopt
poudriere shell builtin chokes on the default value of the set:-
.Potential fix: