Page MenuHomeFreeBSD

Allow @sample to take arguments
ClosedPublic

Authored by bapt on Sep 26 2015, 10:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 17, 1:40 PM
Unknown Object (File)
Sat, Mar 15, 1:28 AM
Unknown Object (File)
Feb 22 2025, 2:12 AM
Unknown Object (File)
Feb 20 2025, 10:09 AM
Unknown Object (File)
Feb 20 2025, 9:13 AM
Unknown Object (File)
Feb 5 2025, 11:52 AM
Unknown Object (File)
Jan 31 2025, 6:38 AM
Unknown Object (File)
Jan 29 2025, 2:21 AM
Subscribers

Details

Summary

No changes for @sample bla.conf.sample
Offer a new syntax possible

@sample file1 file2
file1 is the sample file
file2 isi the target file

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bapt retitled this revision from to Allow @sample to take arguments.
bapt updated this object.
bapt edited the test plan for this revision. (Show Details)
bapt added a reviewer: portmgr.

Mk/Scripts/functions.sh must be adjusted to handle this

Adapt the shell plist parser

antoine added a reviewer: antoine.

looks good to me (with the set -x removed)

This revision is now accepted and ready to land.Sep 26 2015, 11:57 AM
This revision was automatically updated to reflect the committed changes.

How does it work if the filename contains a whitespace character ?

In D3734#77149, @mat wrote:

How does it work if the filename contains a whitespace character ?

You will have to escape like in shell:
"my file" or my\ file