An open API service indexing awesome lists of open source software.

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

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