1 |
On 10/08/2009 11:02 PM, Alan McKinnon wrote: |
2 |
> On Thursday 08 October 2009 21:27:57 Nikos Chantziaras wrote: |
3 |
>> On 10/08/2009 10:19 PM, James Ausmus wrote: |
4 |
>>> I've used it before - I can't remember what is was for, but I do |
5 |
>>> remember using nested $() commands... |
6 |
>>> |
7 |
>>> Isn't ` being deprecated (by BASH at least) anyway? |
8 |
>> |
9 |
>> Hopefully not! It's just two key presses to type "``". "$()" takes 4 |
10 |
>> (shift+4+9, command, shift+0). |
11 |
> |
12 |
> $() is more consistent with other syntax elements in bash, It's essentially |
13 |
> the same thing as evaluating a variable and inserting it's value. The `` |
14 |
> syntax is a wild anachronism from days long ago that is completely at odds |
15 |
> with everything else in the shell. Well, you can say that about many things in |
16 |
> bash, but that's not a good reason to not fix anything... |
17 |
> |
18 |
> IIRC correctly it's not really deprecated either - that implies the thing will |
19 |
> go away some time. It's more "strongly advised not to use it" |
20 |
|
21 |
I think you're confusing script usage vs interactive CLI usage. |
22 |
|
23 |
|
24 |
>> What's easier than simply pressing one single key? :-/ |
25 |
> |
26 |
> Ummm, not having to look for it and find it first before pressing it? |
27 |
|
28 |
That's true for every key. But I bet you learned how to do shift+4 to |
29 |
get an $, right? Well, it's much easier to learn how to press ` to get |
30 |
an... ` ;) |
31 |
|
32 |
|
33 |
> How about a keyboard that doesn't have it at all? |
34 |
|
35 |
Don't know, I've never saw one. |