Skip to content

Deal with package name ambiguity#1

Open
dcjud wants to merge 3 commits into
masterfrom
dcjud-patch-1
Open

Deal with package name ambiguity#1
dcjud wants to merge 3 commits into
masterfrom
dcjud-patch-1

Conversation

@dcjud

@dcjud dcjud commented Jun 2, 2026

Copy link
Copy Markdown
Owner

If multiple packages match $PKG, "ls" will return one per line, causing script to fail. For example: vim and vim-gvim; man-db and man-pages. Use sed to take only the first line from the "ls" stdout. Can always provide full name of package e.g. "vim-gvim" if that's the one desired.

dcjud added 3 commits June 2, 2026 02:52
If multiple packages match $PKG, "ls" will return one per line, causing script to fail. For example: vim and vim-gvim; man-db and man-pages. Use sed to take only the first line from the "ls" stdout. Can always provide full name of package e.g. "vim-gvim" if that's the one desired.
Per request of author, use "head -n 1" instead of "sed -n '1 p'"
head -n1 without the space per author request.
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.

1 participant