List Info

Thread: Early fault running jhalfs-2.0 on clfs-svn




Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 15:40:05
On Mon, 06 Nov 2006 09:50:46 -0500, George Boudreau wrote:


>>
------------------------------------------------------------
--------------------
>> -e              Executing Cross and Temporary Tools
scripts
>>
------------------------------------------------------------
--------------------
> The '-e' is wrong. The problem is occurring before the
cross/temptools 
> phase is called.  I will pinch off a partition for an
Ubuntu install and 
> work on the problem.


More on this: Executing:

echo -e \t\tExecuting  scripts

under bash gives the right result, but sh doesn't (it
includes the -e in
the output).

My guess is that Ubuntu's sh isn't conforming to the sh we
know and [love|hate]. I'll dig some more...

The echo built-in doesn't support -e.

R.

-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:28:46
On 11/6/06, TheOldFellow <TheOldFellowgmail.com> wrote:
> On Mon, 06 Nov 2006 09:50:46 -0500, George Boudreau
wrote:
>
>
> >>
------------------------------------------------------------
--------------------
> >> -e              Executing Cross and Temporary
Tools scripts
> >>
------------------------------------------------------------
--------------------
> > The '-e' is wrong. The problem is occurring before
the cross/temptools
> > phase is called.  I will pinch off a partition for
an Ubuntu install and
> > work on the problem.
>
>
> More on this: Executing:
>
> echo -e \t\tExecuting  scripts
>
> under bash gives the right result, but sh doesn't (it
includes the -e in
> the output).
>
> My guess is that Ubuntu's sh isn't conforming to the sh
we
> know and [love|hate]. I'll dig some more...
>
> The echo built-in doesn't support -e.

Yeah, the -e is really only for bash. Perhaps you want to
add the
SHELL = bash variable to the Makefile.

http://www.gnu.org/software/make/manual/make
.html#Choosing-the-Shell

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:33:02
On 11/6/06, TheOldFellow <TheOldFellowgmail.com> wrote:
>
> echo -e \t\tExecuting  scripts

Another option. Use the character code directly.

echo $$'t'$$'t'Executing scripts

This seems to work with /bin/echo and the builtin bash echo,
but it's
the only shell I have.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:30:23
Dan Nicholson wrote:
> On 11/6/06, TheOldFellow <TheOldFellowgmail.com> wrote:
>> On Mon, 06 Nov 2006 09:50:46 -0500, George Boudreau
wrote:
>>
>>
>> >> 
>>
------------------------------------------------------------
-------------------- 
>>
>> >> -e              Executing Cross and
Temporary Tools scripts
>> >> 
>>
------------------------------------------------------------
-------------------- 
>>
>> > The '-e' is wrong. The problem is occurring
before the cross/temptools
>> > phase is called.  I will pinch off a partition
for an Ubuntu install 
>> and
>> > work on the problem.
>>
>>
>> More on this: Executing:
>>
>> echo -e \t\tExecuting  scripts
>>
>> under bash gives the right result, but sh doesn't
(it includes the -e in
>> the output).
>>
>> My guess is that Ubuntu's sh isn't conforming to
the sh we
>> know and [love|hate]. I'll dig some more...
>>
>> The echo built-in doesn't support -e.
> 
> Yeah, the -e is really only for bash. Perhaps you want
to add the
> SHELL = bash variable to the Makefile.
   strange, '-e' has been part of the makefile since day 1.
   I will change the tab requirement.
> 
> http://www.gnu.org/software/make/manual/make
.html#Choosing-the-Shell
> 
> -- 
> Dan

-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:39:42
On 11/6/06, Dan Nicholson <dbn.listsgmail.com> wrote:
> On 11/6/06, TheOldFellow <TheOldFellowgmail.com> wrote:
> >
> > echo -e \t\tExecuting  scripts
>
> Another option. Use the character code directly.
>
> echo $$'t'$$'t'Executing scripts
>
> This seems to work with /bin/echo and the builtin bash
echo, but it's
> the only shell I have.

Wait, this isn't a good idea. sh is bash on my system and
it's doing
the $'t' substitutions. It's probably a good idea to add
"SHELL =
/bin/bash" to the Makefile unless you want to do
excessive bourne
compatibility checking.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:40:50
On 11/6/06, George Boudreau <georgeblinuxfromscratch.org> wrote:
> >
> > Yeah, the -e is really only for bash. Perhaps you
want to add the
> > SHELL = bash variable to the Makefile.
>    strange, '-e' has been part of the makefile since
day 1.
>    I will change the tab requirement.

That's because sh=bash on all of our systems (probably). But
Richard
is using Ubuntu where this doesn't seem to be the case.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:42:29
Dan Nicholson wrote:
> On 11/6/06, George Boudreau <georgeblinuxfromscratch.org> wrote:
>> >
>> > Yeah, the -e is really only for bash. Perhaps
you want to add the
>> > SHELL = bash variable to the Makefile.
>>    strange, '-e' has been part of the makefile
since day 1.
>>    I will change the tab requirement.
> 
> That's because sh=bash on all of our systems
(probably). But Richard
> is using Ubuntu where this doesn't seem to be the case.
> 
   In the trunk I have changed/added the following.
at the end of the constant definition

add   tab_ = 't'
add   nl_  = 't'

replace all "\t" with "$(tab_)"
replace all "echo -e"  with "echo "

   TOF - could you try this on your Ubuntu
> -- 
> Dan

-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:47:15
George Boudreau wrote:
> Dan Nicholson wrote:
>> On 11/6/06, George Boudreau <georgeblinuxfromscratch.org> wrote:
>>> >
>>> > Yeah, the -e is really only for bash.
Perhaps you want to add the
>>> > SHELL = bash variable to the Makefile.
>>>    strange, '-e' has been part of the makefile
since day 1.
>>>    I will change the tab requirement.
>>
>> That's because sh=bash on all of our systems
(probably). But Richard
>> is using Ubuntu where this doesn't seem to be the
case.
>>
>   In the trunk I have changed/added the following.
   to the file makefile-functions
> at the end of the constant definition
> 
> add   tab_ = 't'
> add   nl_  = 't'
> 
> replace all "\t" with "$(tab_)"
> replace all "echo -e"  with "echo "
> 
>   TOF - could you try this on your Ubuntu
>> -- 
>> Dan
> 

-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
Early fault running jhalfs-2.0 on clfs-svn
user name
2006-11-06 18:52:45
On 11/6/06, George Boudreau <georgeblinuxfromscratch.org> wrote:
> Dan Nicholson wrote:
> > On 11/6/06, George Boudreau <georgeblinuxfromscratch.org> wrote:
> >> >
> >> > Yeah, the -e is really only for bash.
Perhaps you want to add the
> >> > SHELL = bash variable to the Makefile.
> >>    strange, '-e' has been part of the makefile
since day 1.
> >>    I will change the tab requirement.
> >
> > That's because sh=bash on all of our systems
(probably). But Richard
> > is using Ubuntu where this doesn't seem to be the
case.
> >
>    In the trunk I have changed/added the following.
> at the end of the constant definition
>
> add   tab_ = 't'
> add   nl_  = 't'
>
> replace all "\t" with "$(tab_)"
> replace all "echo -e"  with "echo "
>
>    TOF - could you try this on your Ubuntu

Hey George, if you want to play around with a real Bourne
shell (to
see just how compatible your scripts are), try out the
heirloom sh.

http://heirlo
om.sourceforge.net/sh.html

Don't `make install', though, unless you don't like your
current
/bin/sh! I installed it on anduin in my home directory as
jsh to play
around. I haven't gotten around to installing it on my home
box.

It's a lot of fun to find out how not compatible your
scripts are. 
Much easier to just say /bin/bash this.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
[1-9]

about | contact  Other archives ( Real Estate discussion Medical topics )