Page MenuHomeFreeBSD

pstef (Piotr Stefaniak)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 25 2016, 9:00 PM (458 w, 6 d)

Recent Activity

Mar 8 2025

pstef added a comment to D49201: [WIP] sh: implement non-nested brace expansion.

Hmm, so we are moving more in the direction of bash. Traditionally, this resulted in some objections on the mailing lists but perhaps opinions have changed.

Mar 8 2025, 6:14 PM

Mar 4 2025

pstef added a comment to D49201: [WIP] sh: implement non-nested brace expansion.

This adds a non-POSIX feature (although it is pretty common); is the goal to make sh a mostly feature-complete alternative to bash?

Mar 4 2025, 6:58 PM

Mar 2 2025

pstef requested review of D49201: [WIP] sh: implement non-nested brace expansion.
Mar 2 2025, 10:39 AM

Feb 27 2025

pstef committed rG2980318b2747: sh.1: extend the section about getopts (authored by pstef).
sh.1: extend the section about getopts
Feb 27 2025, 5:51 PM
pstef closed D49106: sh.1: wordsmith the section about getopts.
Feb 27 2025, 5:51 PM
pstef added inline comments to D49106: sh.1: wordsmith the section about getopts.
Feb 27 2025, 5:36 PM

Feb 25 2025

pstef added inline comments to D49106: sh.1: wordsmith the section about getopts.
Feb 25 2025, 4:34 PM

Feb 23 2025

pstef updated the diff for D49106: sh.1: wordsmith the section about getopts.
getopts optstring var
        Parse command-line options and arguments.  The first argument
        optstring should be a series of letters, each possibly followed
        by a colon which indicates that the option takes an argument.
        The specified variable var is set to the parsed option.  The
        index of the next argument is placed into the shell variable
        OPTIND.  If an option takes an argument, it is placed into the
        shell variable OPTARG.
Feb 23 2025, 10:49 AM

Feb 22 2025

pstef added inline comments to D49106: sh.1: wordsmith the section about getopts.
Feb 22 2025, 5:53 PM
pstef requested review of D49106: sh.1: wordsmith the section about getopts.
Feb 22 2025, 5:03 PM
pstef accepted D48483: bintrans: disable argument permutation for qp and base64.
Feb 22 2025, 1:19 PM
pstef added a comment to D48483: bintrans: disable argument permutation for qp and base64.

I'm in favor of this change, but the previous version is OK too.

Feb 22 2025, 1:19 PM

Jan 22 2025

pstef committed rG6ba2f08cea8c: ls: --group-directories requires stat information (authored by pstef).
ls: --group-directories requires stat information
Jan 22 2025, 7:36 AM

Jan 16 2025

pstef committed rG4ed2448a4f2b: ls.1: bump date after 82fa7f83b53b and 8b92977857f8 (authored by pstef).
ls.1: bump date after 82fa7f83b53b and 8b92977857f8
Jan 16 2025, 4:09 PM
pstef committed rG8b92977857f8: ls: implement --group-directories-first for compatibility with GNU ls (authored by pstef).
ls: implement --group-directories-first for compatibility with GNU ls
Jan 16 2025, 4:04 PM
pstef committed rG82fa7f83b53b: ls -lh: humanize the total (authored by pstef).
ls -lh: humanize the total
Jan 16 2025, 4:04 PM
pstef closed D48347: ls: --group-directories=first/last.
Jan 16 2025, 4:04 PM
pstef closed D48329: ls -h: humanize the total as well.
Jan 16 2025, 4:04 PM
pstef added inline comments to D48329: ls -h: humanize the total as well.
Jan 16 2025, 7:10 AM

Jan 11 2025

pstef added inline comments to D48329: ls -h: humanize the total as well.
Jan 11 2025, 7:03 PM
pstef updated the diff for D48329: ls -h: humanize the total as well.
Jan 11 2025, 10:08 AM
pstef added inline comments to D48329: ls -h: humanize the total as well.
Jan 11 2025, 10:03 AM

Jan 10 2025

pstef updated the diff for D48329: ls -h: humanize the total as well.

Give up on the idea of providing both humanized and dehumanized numbers.

Jan 10 2025, 6:41 PM
pstef added inline comments to D48329: ls -h: humanize the total as well.
Jan 10 2025, 6:37 PM
pstef updated the diff for D48347: ls: --group-directories=first/last.

Try to address comments from jhb.

Jan 10 2025, 6:28 PM
pstef added inline comments to D48347: ls: --group-directories=first/last.
Jan 10 2025, 6:28 PM

Jan 8 2025

pstef added a comment to D48329: ls -h: humanize the total as well.

It seems reasonable to me to switch to (rather than add) the humanized form for -h which is what's already done for the files in the list. "xMB in y blocks" also gives me the impression that we're presenting two different quantities (e.g. that 1M could be in some arbitrary number of blocks) - it would probably make more sense to show it as "total %s (%lu blocks)" if keeping both.

Jan 8 2025, 8:31 PM
pstef added a comment to D48329: ls -h: humanize the total as well.

Just as a data point, GNU ls doesn't print the number of blocks with -h. Which doesn't mean it is bad to print it, especially given that scripts should not use -h. No personal preference here.

Jan 8 2025, 6:12 PM
pstef added a comment to D48329: ls -h: humanize the total as well.

I agree with @phk that this was probably an oversight. I'm not sure I'd include blocks under -h -- why not just total 268503 without -h and total 131M with -h?

Jan 8 2025, 5:25 PM
pstef accepted D48380: bintrans(1): qp switch to getopt_long.

When I imported mmencode, its usage was already established to be mmencode [-u] [-q] [-b] [-p] [-o outputfile] [file name] and has been for probably decades.
I have no opinion on what it should be, just giving historical context here.

Jan 8 2025, 4:13 PM
pstef accepted D48381: bintrans: RFC2047 variant of quoted print.

I haven't tested this, but it LGTM in principle.

Jan 8 2025, 4:08 PM
pstef added a comment to D48347: ls: --group-directories=first/last.

This is for compatibility with GNU ls, where this is an equally long option.
We already distribute a system where ls is an alias.

Jan 8 2025, 6:47 AM
pstef added a comment to D48329: ls -h: humanize the total as well.

Scripts shouldn't be using -h.

Jan 8 2025, 6:45 AM

Jan 7 2025

pstef updated the diff for D48347: ls: --group-directories=first/last.
Jan 7 2025, 5:37 PM
pstef updated the diff for D48347: ls: --group-directories=first/last.
Jan 7 2025, 7:00 AM

Jan 6 2025

pstef updated the diff for D48347: ls: --group-directories=first/last.
Jan 6 2025, 10:01 PM
pstef requested review of D48347: ls: --group-directories=first/last.
Jan 6 2025, 9:30 PM
pstef updated the summary of D48329: ls -h: humanize the total as well.
Jan 6 2025, 8:11 PM
pstef updated the diff for D48329: ls -h: humanize the total as well.
Jan 6 2025, 8:05 PM
pstef updated the summary of D48329: ls -h: humanize the total as well.
Jan 6 2025, 7:58 PM
pstef updated the diff for D48329: ls -h: humanize the total as well.
Jan 6 2025, 5:52 PM
pstef updated the diff for D48329: ls -h: humanize the total as well.
Jan 6 2025, 7:36 AM

Jan 5 2025

pstef requested review of D48329: ls -h: humanize the total as well.
Jan 5 2025, 10:39 PM

Jan 4 2025

pstef added inline comments to D48225: timeout(1): Add -v/--verbose option to show diagnosis info.
Jan 4 2025, 2:30 PM

Sep 3 2024

pstef added a comment to D46321: sh: move histedit() call outside of test for bind -.

https://reviews.freebsd.org/P645 is a diff that teaches libedit how to parse it, by the way.

That change LGTM if you want to commit it.

Sep 3 2024, 5:10 PM

Aug 19 2024

pstef added a comment to D46321: sh: move histedit() call outside of test for bind -.

I believe the problem was introduced in 5fe973734866 or ef0d94a3d34c where ^[[A is introduced. I think libedit doesn't have the code to parse that properly. Fortunately it can be replaced with \e.

Aug 19 2024, 10:32 PM
pstef edited P645 Teach libedit how to parse ^[.
Aug 19 2024, 10:24 PM
pstef created P645 Teach libedit how to parse ^[.
Aug 19 2024, 10:19 PM

Jun 7 2024

pstef added a comment to D45073: sh(1): Replace recommendation of use of -e with a note.

I'd say that we shouldn't make any recommendations on how to use parts of a language in our manual. We should instead focus on facts, list them all and describe as they are. If there is some kind of interaction between parts of the language that is possibly counter-intuitive then we can and probably should indicate directly or indirectly that something requires consideration, but at the same time we should keep the manual free of judgement.

Jun 7 2024, 7:43 PM

May 6 2024

pstef committed rG3f0b80bc1537: ps: handle incorrect -D values (authored by jamie_catflap.org).
ps: handle incorrect -D values
May 6 2024, 5:15 PM

Mar 14 2024

pstef added a comment to D42327: vfs mount: Consistently use ENODEV internally for an invalid fstype.
Mar 14 2024, 4:51 PM

Mar 9 2024

pstef added a comment to D42327: vfs mount: Consistently use ENODEV internally for an invalid fstype.

@jhb do you think the following is related?

Mar 9 2024, 9:33 PM

Feb 18 2024

pstef committed rGc8691d183da3: tcp: Silence a -Wunused-function warning in tcp_ratelimit.h (authored by markj).
tcp: Silence a -Wunused-function warning in tcp_ratelimit.h
Feb 18 2024, 2:29 PM

Feb 16 2024

pstef abandoned D43301: Ports: update www/netsurf to 3.11.

Already committed.

Feb 16 2024, 6:30 PM

Feb 8 2024

pstef committed rG94ddf40c0f5d: tcp_wrappers: silence a few warnings (authored by pstef).
tcp_wrappers: silence a few warnings
Feb 8 2024, 5:45 PM
pstef committed rG43b7fec10b6b: libcompat: silence -Wdeprecated-non-prototype (authored by pstef).
libcompat: silence -Wdeprecated-non-prototype
Feb 8 2024, 5:45 PM

Feb 6 2024

pstef committed rG12bae251fbfa: libcompat: silence -Wdeprecated-non-prototype (authored by pstef).
libcompat: silence -Wdeprecated-non-prototype
Feb 6 2024, 7:34 PM
pstef closed D43723: libcompat: silence -Wdeprecated-non-prototype.
Feb 6 2024, 7:34 PM

Feb 3 2024

pstef requested review of D43723: libcompat: silence -Wdeprecated-non-prototype.
Feb 3 2024, 6:18 PM

Jan 23 2024

pstef accepted D43558: bintrans: Add base64 to name list in manual page..
Jan 23 2024, 3:37 PM

Jan 22 2024

pstef committed rG8297ff13fb60: tcp_wrappers: silence a few warnings (authored by pstef).
tcp_wrappers: silence a few warnings
Jan 22 2024, 4:25 PM
pstef closed D43531: tcp_wrappers: silence a -Wdeprecated-non-prototype warning.
Jan 22 2024, 4:24 PM

Jan 21 2024

pstef added a comment to D43518: Implement kcmp(2).

FWIW, Chromium also complains about the lack of kcmp.

Jan 21 2024, 7:17 PM
pstef retitled D43531: tcp_wrappers: silence a -Wdeprecated-non-prototype warning from tcp_wrappers: silence a few warnings to tcp_wrappers: silence a -Wdeprecated-non-prototype warning.
Jan 21 2024, 10:33 AM
pstef requested review of D43531: tcp_wrappers: silence a -Wdeprecated-non-prototype warning.
Jan 21 2024, 10:18 AM

Jan 4 2024

pstef added a reviewer for D43301: Ports: update www/netsurf to 3.11: Contributor Reviewers (ports).
Jan 4 2024, 11:13 AM
pstef requested review of D43301: Ports: update www/netsurf to 3.11.
Jan 4 2024, 11:08 AM

Dec 3 2023

pstef added a comment to D42880: wireguard: extend ifconfig.

I'm not sure about how useful this is to me. I use ifconfig to take a glance at all interfaces and if I want to learn more specifically about the state of the wg interface, I just run wg. I know it's obvious, I just mean that I never missed this information when looking at ifconfig output. On the other hand, with this patch, the output is longer and somewhat less readable.

Dec 3 2023, 4:02 PM

Nov 29 2023

pstef added inline comments to D42832: EN for OpenZFS data corruption issue.
Nov 29 2023, 6:13 PM

Nov 11 2023

pstef accepted D42552: Update ps.1 regarding -D option and wrong assumption about -p x/d interaction.
Nov 11 2023, 7:44 PM

Oct 25 2023

pstef accepted D42327: vfs mount: Consistently use ENODEV internally for an invalid fstype.

Thanks for the information and apologies for the mess.
For me the case where the filesystem name was wrong and mount complained about file not existing was more common and more annoying since it was easy to see that the designated mount point clearly existed.

Oct 25 2023, 4:01 PM

Oct 24 2023

pstef added a comment to D42327: vfs mount: Consistently use ENODEV internally for an invalid fstype.

What are the user-facing errors in various cases after this?

Oct 24 2023, 6:36 PM

Sep 30 2023

pstef added a comment to D42027: netlink: fix accessing freed memory.

I'm not sure but it seems that on the changed lines you replaced space indentation with tabs.

Sep 30 2023, 3:40 PM

Sep 24 2023

pstef accepted D41949: mailmap: Add pstef and val.
Sep 24 2023, 10:05 AM

Sep 23 2023

pstef committed rGa675eaec5aef: sh: implement PS1 \D to print current time (authored by pstef).
sh: implement PS1 \D to print current time
Sep 23 2023, 6:29 PM
pstef closed D35840: sh: implement PS1 \D to print current time.
Sep 23 2023, 6:28 PM

Sep 14 2023

pstef added inline comments to D41849: virtio: add comment on the spec for vring struct.
Sep 14 2023, 6:29 AM
pstef added inline comments to D41851: virtio: start simple, document virtio_endian(9).
Sep 14 2023, 6:28 AM · manpages
pstef added inline comments to D41853: virtio: add introduction to virtio, document virtio.h.
Sep 14 2023, 6:23 AM
pstef added inline comments to D41852: virtio: add man page for virtqueue(9) functions.
Sep 14 2023, 6:05 AM

Sep 12 2023

pstef committed rGc996638497d1: tslog.4: fix typo (authored by pstef).
tslog.4: fix typo
Sep 12 2023, 7:11 PM
pstef committed rG8e5c53af831b: sh: also auto-complete functions (authored by pstef).
sh: also auto-complete functions
Sep 12 2023, 4:43 PM
pstef committed rGbec7b9a21979: sh: introduce a function to iterate over all hashed commands (authored by pstef).
sh: introduce a function to iterate over all hashed commands
Sep 12 2023, 4:43 PM
pstef committed rG0fd450e2895e: sh: tab-complete aliases (authored by pstef).
sh: tab-complete aliases
Sep 12 2023, 4:43 PM
pstef committed rG2fc4a84ed828: sh: introduce a function to iterate over all aliases (authored by pstef).
sh: introduce a function to iterate over all aliases
Sep 12 2023, 4:43 PM
pstef committed rG63b6e661d25c: sh: reindent a for loop in parser.c (authored by pstef).
sh: reindent a for loop in parser.c
Sep 12 2023, 4:43 PM
pstef closed D40619: sh: auto-complete functions and aliases.
Sep 12 2023, 4:43 PM
pstef closed D37926: sh: reindent a for loop in parser.c.
Sep 12 2023, 4:43 PM

Aug 25 2023

pstef requested changes to D16132: New cmb(3) library and cmb(1) utility.

As of stable/14 this no longer compiles for me due to

/usr/src/lib/libcmb/cmb.c:854:6: error: invalid argument type 'void' to unary expression
        if (!BN_zero(count))
            ^~~~~~~~~~~~~~~
/usr/src/lib/libcmb/cmb.c:1032:7: error: invalid argument type 'void' to unary expression
                if (!BN_zero(seq))
                    ^~~~~~~~~~~~~
2 errors generated.
Aug 25 2023, 5:58 PM

Aug 24 2023

pstef committed rG5c0a1c15ff8c: ps: add a new option -D to reimplement tree traversal (authored by pstef).
ps: add a new option -D to reimplement tree traversal
Aug 24 2023, 4:38 PM
pstef committed rGf06e32e9b9e4: Revert "ps: extend the non-standard option -d (tree view) to work with -p" (authored by pstef).
Revert "ps: extend the non-standard option -d (tree view) to work with -p"
Aug 24 2023, 4:37 PM
pstef added a reverting change for rGca8c0d5e8110: ps: extend the non-standard option -d (tree view) to work with -p: rGf06e32e9b9e4: Revert "ps: extend the non-standard option -d (tree view) to work with -p".
Aug 24 2023, 4:37 PM
pstef closed D41231: ps: split tree traversal to a separate option.
Aug 24 2023, 4:37 PM

Aug 20 2023

pstef updated the diff for D41231: ps: split tree traversal to a separate option.
  1. -D doesn't imply -d anymore. I found that to be unnecessarily limiting, now users can decide on the visual format.
  2. The usage output and the manual page are updated.
Aug 20 2023, 8:04 AM

Aug 19 2023

pstef updated the diff for D41231: ps: split tree traversal to a separate option.

Add -D both.

Aug 19 2023, 11:05 PM
pstef updated the diff for D41231: ps: split tree traversal to a separate option.

Follow advice from Jamie and use -D up and -D down.

Aug 19 2023, 10:48 PM

Jul 29 2023

pstef added a reverting change for rGca8c0d5e8110: ps: extend the non-standard option -d (tree view) to work with -p: D41231: ps: split tree traversal to a separate option.
Jul 29 2023, 7:11 PM
pstef requested review of D41231: ps: split tree traversal to a separate option.
Jul 29 2023, 7:11 PM

Jul 7 2023

pstef updated the diff for D40619: sh: auto-complete functions and aliases.

Address comments from Jilles.

Jul 7 2023, 6:40 PM

Jun 29 2023

pstef accepted D40788: Restore and document -ps / -nps option..
Jun 29 2023, 1:54 PM