1 |
Alan McKinnon <alan.mckinnon@×××××.com> writes: |
2 |
|
3 |
|
4 |
[...] |
5 |
|
6 |
>> Can anyone interpret this emerge failure and have some educated |
7 |
>> guesses what I should do to get it to compile. That message follows |
8 |
>> the eix output below. |
9 |
> |
10 |
> http://forums.gentoo.org/viewtopic-p-4210019.html?sid=a282fd302189d999924b214267ec5b90 |
11 |
> |
12 |
> especially last 4 posts |
13 |
> |
14 |
> Apparently it's a bug, and has been fixed in later versions. You are |
15 |
> using a stable 2004 version, in your position I would unmask ksh and |
16 |
> emerge the latest unstable |
17 |
|
18 |
I see... thanks. That does sound like a way around it., |
19 |
|
20 |
I may just start using bash instead for the future... |
21 |
Having this happen has made me rethink my ( non-thought out) choice of |
22 |
shells. |
23 |
|
24 |
I see where it can cause some grief at a time when you don't want to |
25 |
be horsing around with that kind of problem. |
26 |
|
27 |
I'm not a very sophisticated shell script programmer. |
28 |
|
29 |
One thing I liked about ksh93 was its ability to match on regex. |
30 |
Something bash couldn't do not so long ago. I haven't been paying |
31 |
attention to bash development but having this problem, I did start |
32 |
investigating and finding that modern bash can do most if not all of |
33 |
what I liked about ksh93. |
34 |
|
35 |
It can match like this |
36 |
|
37 |
if [[ $1 =~ ^[0-9]+$ ]];then |
38 |
[...] |
39 |
fi |
40 |
|
41 |
Forcing a match of number only by regex. Instead of trying to do it |
42 |
with a pattern match. |
43 |
|
44 |
And a sort of double reverse loop de loop negation I sometimes find |
45 |
useful. (since there is no `!~' operator like perl or awk) |
46 |
|
47 |
if [[ ! ( $1 =~ ^[0-9]+$ )]];then |
48 |
[...] |
49 |
fi |
50 |
|
51 |
I'm beginning to think I may just drop ksh93. Unfortunately, I've |
52 |
grown quite accustomed to using `print' instead of `echo -e' so I will |
53 |
have to replace that in a couple dozen scripts... otherwise the |
54 |
scripts seem to run fine under bash. (so far.. I haven't tested all of |
55 |
them yet) |
56 |
|
57 |
|
58 |
-- |
59 |
gentoo-user@l.g.o mailing list |