[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] v.04.0 setup quirk
Hi Dan,
On Sat, May 16, 2009 at 7:52 AM, Dan Miller <dan@xxxxxxxxxx> wrote:
> Actually, this has occurred with every distribution that I've worked with so
> far.
> I'm running Ubuntu 8.10
> I've remapped /bin/sh to bash, vs dash
> When I run ". settings.sh", I get:
>
> basename: invalid option -- 's'
> Try `basename --help' for more information.
> -su: [: ==: unary operator expected
> PetaLinux environment set to '/home/petalinux-v0.40-rc1'
It's because when sourcing the settings script, $0 is reporting as
"-bash" instead of "bash". The hypen is confusing the basename
command, thus the message you see.
It's not fatal, but can be easily fixed.
In te meantime if you don't like it you can run "bash", to spawn a new
subshell, before sourcing settings.sh and doing your petalinux work.
Regards,
John
--
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663 f: +61-7-30090663
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/