diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 18:22:32 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-30 18:22:32 +0200 |
commit | f441e00ea60a5e485d853d5dd3ac99a8535a40cc (patch) | |
tree | c6caa787b7b51b5cd04fe010dbdde87abce3e09b /src/b_export.c | |
parent | Less retarded stuff (diff) | |
download | 42-minishell-f441e00ea60a5e485d853d5dd3ac99a8535a40cc.tar.gz 42-minishell-f441e00ea60a5e485d853d5dd3ac99a8535a40cc.tar.bz2 42-minishell-f441e00ea60a5e485d853d5dd3ac99a8535a40cc.tar.xz 42-minishell-f441e00ea60a5e485d853d5dd3ac99a8535a40cc.tar.zst 42-minishell-f441e00ea60a5e485d853d5dd3ac99a8535a40cc.zip |
In progress
Diffstat (limited to 'src/b_export.c')
-rw-r--r-- | src/b_export.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/b_export.c b/src/b_export.c index 5e7ee14..95ccf40 100644 --- a/src/b_export.c +++ b/src/b_export.c @@ -64,6 +64,7 @@ uint8_t r = 0; while (*ptr) { + ft_printf("export: [%s]\n", *ptr); next = 0; if (!check_valid_identifier(*ptr)) { @@ -72,7 +73,16 @@ uint8_t r = 1; } if (next == 0 && !check_equals(*ptr)) + { next = 1; + /* TODO: export already set variable */ + /* examples: */ + /* ~> QWE=qwe */ + /* ~> export QWE */ + /* -------------- */ + /* # non-existant variable QWE */ + /* ~> export QWE */ + } ptr++; } /* TODO: finish export */ |