https://github.com/milahu/env-options-parser
parse arguments for gnu coreutils env = /usr/bin/env
https://github.com/milahu/env-options-parser
argparse arguments coreutils env gnu options parse
Last synced: 11 months ago
JSON representation
parse arguments for gnu coreutils env = /usr/bin/env
- Host: GitHub
- URL: https://github.com/milahu/env-options-parser
- Owner: milahu
- License: mit
- Created: 2022-11-02T09:31:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-02T10:32:33.000Z (over 3 years ago)
- Last Synced: 2025-02-06T09:37:41.538Z (about 1 year ago)
- Topics: argparse, arguments, coreutils, env, gnu, options, parse
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# env-options-parser
simple and wrong argument parser for /usr/bin/env = gnu coreutils env
it is wrong because i use `xargs` to tokenize the input string
but this way, extra whitespace is lost
a correct implementation would mirror the exact behavior of [coreutils/src/env.c][1].
see `parse_split_string`
[1]: https://github.com/coreutils/coreutils/blob/master/src/env.c