1 |
Oi! I'm missing e-mails! |
2 |
|
3 |
On Sunday 12 Jun 2016 23:07:09 Andrew Lowe wrote: |
4 |
> On 06/12/16 22:43, Alan McKinnon wrote: |
5 |
|
6 |
I haven't received Alan's e-mail. |
7 |
|
8 |
> > On 12/06/2016 16:33, Nico Verrijdt wrote: |
9 |
> >> Hi Andrew, |
10 |
> >> |
11 |
> >> 2016-06-12 16:26 GMT+02:00 Andrew Lowe <agl@×××××××.au |
12 |
> >> |
13 |
> >> <mailto:agl@×××××××.au>>: |
14 |
> >> Hi all, |
15 |
> >> |
16 |
> >> A bit off topic here, but there are plenty of people who |
17 |
> >> |
18 |
> >> seem to know their shells back to front so here goes. |
19 |
> >> |
20 |
> >> I have set up a Win32 based development environment, |
21 |
> >> |
22 |
> >> bash/cc/ls/etc/etc, for 1st year Engineering students who have to |
23 |
> >> learn C on a command line. It's fine for me to remember to put the |
24 |
> >> & |
25 |
> >> at the end of the command when I fire up the editor but for them, |
26 |
> >> it's major angst. |
27 |
> >> |
28 |
> >> The first thing that comes to mind is an alias. Just off |
29 |
> >> |
30 |
> >> the top of my head I tried: |
31 |
> >> alias "npp=npp %1 &" |
32 |
> >> |
33 |
> >> Shouldn't this be: alias npp="npp %1 &" ? |
34 |
> >> |
35 |
> >> npp being the editor, but that didn't work. Is an alias the |
36 |
> >> best/easiest way to do this and if so, what would the syntax be, or |
37 |
> >> is there a better way? |
38 |
> >> |
39 |
> >> Any thoughts, greatly appreciated, |
40 |
> >> |
41 |
> >> Andrew |
42 |
> >> |
43 |
> >> Hope this helps, |
44 |
> >> Nico |
45 |
> > |
46 |
> > Or just tell them to remember to add the & at the end. |
47 |
> > With an alias what will they do when they don't want it? |
48 |
> > |
49 |
> > Or look at it this way: |
50 |
> > |
51 |
> > It's syntax, it's important. C is probably more syntax-critical than any |
52 |
> > other language around (binds to the right, anyone?) so what's the |
53 |
> > problem with requiring correct syntax on the command line as well? |
54 |
> > |
55 |
> > Obligatory disclaimer: I've recently had a bellyache full of dumb people |
56 |
> > who insist I put code when a human (themselves) belongs... |
57 |
> |
58 |
> Yes, I agree BUT, this is a "half subject" in a common first year of an |
59 |
> Engineering degree. These are people who will become |
60 |
> Civil/Mechanical/Electrical/Chemical Engineers and they have no desire |
61 |
> to learn programming. To put it bluntly, all they are interested in is |
62 |
> their car, getting drunk and trying to get a root - the order may vary, |
63 |
> but that is the top three priorities. Anything else is just too much to |
64 |
> think about. |
65 |
> |
66 |
> In reality, I'm doing this to make my life easier. As much as I tell |
67 |
> them to do something, write up documents that tell them what to do and |
68 |
> reiterate what they have to do, I still get the question "It's broken, |
69 |
> it won't do as I want...." |
70 |
> |
71 |
> Andrew |
72 |
> |
73 |
> p.s. Nico's point was a typo on my part in the email. |
74 |
|
75 |
Now that's a classic debug case - where are these messages being dropped? |
76 |
|
77 |
It's the second time I've noticed it in this list today. |
78 |
|
79 |
-- |
80 |
Rgds |
81 |
Peter |