Skip to content

Minor issue: inconsistent behavior when file is permission deniedΒ #13

@linhtng

Description

@linhtng

minishell$ chmod 000 a
minishell$ cat a | echo hi
hi
cat: a: Permission denied
minishell$ hi > a | echo hi
minishell: unable to open file for writing: a
minishell$

1st case, we still echo hi but in 2nd case we don't, which is a bit inconsistent.
Bash and zsh echo hi in both cases.
This is trivial though, maybe no need to fix, just so we know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions