TR-42 / minishell

https://tr-42.github.io/minishell/
0 stars 0 forks source link

論理演算子の実装 #25

Closed TetsuOtter closed 1 year ago

TetsuOtter commented 1 year ago
bash-3.2$ echo 0 || echo 1
0
bash-3.2$ grep || echo 1
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
1
bash-3.2$ grep|echo 0 || echo 1
0
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]