fucalerro / 42-minishell

1 stars 0 forks source link

In cmd we need to manage / #34

Closed Lu-ni closed 7 months ago

Lu-ni commented 7 months ago
/Users/bob/src/42-minishell🌻 /bin/ls
 command not found: No such file or directory

/Users/bob/src/42-minishell🌻 ./minishell
 command not found: No such file or directory

/Users/bob/src/42-minishell/trash🌻 ../minishell
 command not found: No such file or directory

Relative and Absolute Paths: If the command includes a slash (/), Bash interprets it as a file path. It does not use the PATH variable for this; instead, it tries to execute the file at the specified path. This path can be absolute (like /usr/bin/ls) or relative to the current directory (like ./script.sh).

Lu-ni commented 7 months ago

should be solve here 4b231ec