1 |
On 06/13/16 03:06, Jonathan Callen wrote: |
2 |
> On 06/12/2016 11:54 AM, Andrew Lowe wrote: |
3 |
>> On 06/12/16 23:07, Andrew Lowe wrote: |
4 |
>>> On 06/12/16 22:43, Alan McKinnon wrote: |
5 |
>>>> On 12/06/2016 16:33, Nico Verrijdt wrote: |
6 |
>>>>> Hi Andrew, |
7 |
>>>>> |
8 |
>>>>> 2016-06-12 16:26 GMT+02:00 Andrew Lowe <agl@×××××××.au |
9 |
>>>>> <mailto:agl@×××××××.au>>: |
10 |
>>>>> |
11 |
>>>>> Hi all, |
12 |
>>>>> A bit off topic here, but there are plenty of people who |
13 |
>>>>> seem to know their shells back to front so here goes. |
14 |
|
15 |
[snip] |
16 |
... |
17 |
... |
18 |
[snip] |
19 |
|
20 |
> |
21 |
> A better function for the same (that also doesn't loop forever because |
22 |
> the function might be calling itself): |
23 |
> |
24 |
> npp() { |
25 |
> command npp "$@" & |
26 |
> } |
27 |
> |
28 |
> This allows any number of arguments to be passed, instead of "exactly |
29 |
> one" and allows filenames containing spaces, etc. to be passed correctly. |
30 |
> |
31 |
|
32 |
Thanks, that's a nice little tweak. |
33 |
|
34 |
Andrew |