Skip to content

milahu/env-options-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. see parse_split_string