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

read -Z as an alias for IFS= read -rd ''? #821

Open
adavies42 opened this issue Feb 3, 2025 · 0 comments
Open

read -Z as an alias for IFS= read -rd ''? #821

adavies42 opened this issue Feb 3, 2025 · 0 comments
Labels
1.1 Issue relevant to dev branch (v1.1.*) enhancement New feature or request

Comments

@adavies42
Copy link

Now that ksh supports null-terminated read, it would be convenient to have a single option to trigger it, rather than having to remember to set three different things correctly. I suggest that a -Z option be added to read which would set IFS to the empty string for the duration of the command and have the same effect as using the -r and -d '' options. (I chose -Z since -z is already used by zsh's read for something else; -Z is currently unused in both bash and zsh.)

@McDutchie McDutchie added the enhancement New feature or request label Feb 4, 2025
@McDutchie McDutchie added the 1.1 Issue relevant to dev branch (v1.1.*) label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.1 Issue relevant to dev branch (v1.1.*) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants