Repository navigation
Commit 3992a5a
committed
Run
Students used to run `help50 make foo`. Help now arrives automatically after
any failed command, so run COMMAND with the same exit status and let the prompt
hook handle the rest: help50 make foo behaves exactly like make foo. Builtins go
through bash -c with the shell's error wording preserved; an unknown command
fails with the shell's own "command not found" message so helpers match it.
Bare help50 prints usage (exit 0) explaining the new behaviour. The subcommands
(start/stop/...) are unchanged; only they require non-root.help50 COMMAND as though COMMAND were typed directly1 parent dd74ee9 commit 3992a5a
1 file changed
Lines changed: 33 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 3 | | |
9 | 4 | | |
10 | 5 | | |
| |||
80 | 75 | | |
81 | 76 | | |
82 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
83 | 101 | | |
84 | 102 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
99 | 110 | | |
100 | | - | |
101 | | - | |
| 111 | + | |
| 112 | + | |
102 | 113 | | |
103 | 114 | | |
104 | | - | |
105 | | - | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
0 commit comments