pablo-lamtenzan / miniShell

Implementing (most of) Bash from scracth, supports term-caps, expansion, job control and conditionals.
0 stars 0 forks source link

Tilde expansion #23

Closed pablo-lamtenzan closed 3 years ago

pablo-lamtenzan commented 3 years ago

As a bonus not in the subject this is optional

see 42sh_tester_issues.txt (line 82) or execute

$ bash ~/42ShellTester/42ShellTester.sh ./minishell --show-success --reference "bash" --filter "tilde-expansion" --hard

ClemaX commented 3 years ago

This works:

[chamada]$ echo ~
/Users/chamada
[chamada]$ echo ~+
/Users/chamada/Projects/minishell
[chamada]$ echo ~-
/Users/chamada

But i'm going to check with the tester

pablo-lamtenzan commented 3 years ago

Finally ?

pablo-lamtenzan commented 3 years ago

i' ve checked a lot of tests and the 42sh tester is useful but sometimes has some incoherences. I think the tilde is correct if minish tests results are as bash