Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative field numbers #65

Open
ggrothendieck opened this issue Jun 4, 2024 · 0 comments
Open

Negative field numbers #65

ggrothendieck opened this issue Jun 4, 2024 · 0 comments

Comments

@ggrothendieck
Copy link

ggrothendieck commented Jun 4, 2024

Can you clarify how negative field numbers work. If I use this file called s.s

ABC;GHI;JKKK;KLLL
JKL;YUI;

We get

choose -f ; -1 < s.s
KLLL
YUI

so I thought maybe it takes the last non-empty field but this gives the empty field

echo a;b;c; | choose -f  ; -1

One other comment is that it seems that -f; does not work (it gives an error Invalid value for '<choices>...'), only -f ; with a space after -f and before the separator works.

I am doing this all on Windows.

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

No branches or pull requests

1 participant