From: reader@newsguy.com
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: emerge of ksh93 erroring out.. who can interpret
Date: Tue, 08 Jan 2008 20:32:46 -0600 [thread overview]
Message-ID: <87y7azranl.fsf@newsguy.com> (raw)
In-Reply-To: 200801081139.54044.alan.mckinnon@gmail.com
Alan McKinnon <alan.mckinnon@gmail.com> writes:
[...]
>> Can anyone interpret this emerge failure and have some educated
>> guesses what I should do to get it to compile. That message follows
>> the eix output below.
>
> http://forums.gentoo.org/viewtopic-p-4210019.html?sid=a282fd302189d999924b214267ec5b90
>
> especially last 4 posts
>
> Apparently it's a bug, and has been fixed in later versions. You are
> using a stable 2004 version, in your position I would unmask ksh and
> emerge the latest unstable
I see... thanks. That does sound like a way around it.,
I may just start using bash instead for the future...
Having this happen has made me rethink my ( non-thought out) choice of
shells.
I see where it can cause some grief at a time when you don't want to
be horsing around with that kind of problem.
I'm not a very sophisticated shell script programmer.
One thing I liked about ksh93 was its ability to match on regex.
Something bash couldn't do not so long ago. I haven't been paying
attention to bash development but having this problem, I did start
investigating and finding that modern bash can do most if not all of
what I liked about ksh93.
It can match like this
if [[ $1 =~ ^[0-9]+$ ]];then
[...]
fi
Forcing a match of number only by regex. Instead of trying to do it
with a pattern match.
And a sort of double reverse loop de loop negation I sometimes find
useful. (since there is no `!~' operator like perl or awk)
if [[ ! ( $1 =~ ^[0-9]+$ )]];then
[...]
fi
I'm beginning to think I may just drop ksh93. Unfortunately, I've
grown quite accustomed to using `print' instead of `echo -e' so I will
have to replace that in a couple dozen scripts... otherwise the
scripts seem to run fine under bash. (so far.. I haven't tested all of
them yet)
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-01-09 2:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-07 20:52 [gentoo-user] emerge of ksh93 erroring out.. who can interpret Harry Putnam
2008-01-08 9:39 ` Alan McKinnon
2008-01-09 2:32 ` reader [this message]
2008-01-10 19:34 ` [gentoo-user] " Matthias B.
2008-01-11 17:18 ` reader
2008-01-11 18:26 ` Matthias B.
2008-01-11 18:56 ` reader
2008-01-11 21:41 ` Matthias B.
2008-01-14 15:38 ` Alex Schuster
2008-01-14 17:20 ` reader
2008-01-14 19:22 ` Alex Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y7azranl.fsf@newsguy.com \
--to=reader@newsguy.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox