multitudes / 42-minishell

This project is about creating a simple shell
MIT License
0 stars 0 forks source link

FIX [execution] #175

Closed ProjektPhoenix closed 2 months ago

ProjektPhoenix commented 3 months ago

export ls="ls -l" and then $ls should execute the ls -l command in bash. We currently get: "minishell: command not on path"

multitudes commented 3 months ago

zsh doesnt accept it:

c4c1c1% $ls
zsh: command not found: ls -l
c4c1c1% 
multitudes commented 3 months ago

Bash does it but it would require to tokenize the expansion into tokens. ls -l becomes token ls and token -l. then it will work.

I would say this is extra

multitudes commented 2 months ago

But we did it!