Re: simple prob?

2021-06-30 Thread Chet Ramey

On 6/29/21 5:05 PM, L A Walsh wrote:


So...hmmm...how is it that jobs picks up the right answer in what
would seem to be a subshell?  Special cased?


Yes.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Re: bash on Tru64

2021-06-30 Thread Chet Ramey

On 6/29/21 4:38 PM, Jay K wrote:


rm -f man2html.o
cc -c  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
-Wno-parentheses -Wno-format-security man2html.c
cc  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
-Wno-parentheses -Wno-format-security man2html.o -o man2html
ld:
Invalid flag usage: Wno-parentheses, -Wx,-option must appear after 
-_SYSTYPE_SVR4
ld: Usage: ld [options] file [...]
make[1]: *** [Makefile:80: man2html] Error 1
make[1]: Leaving di


Thanks for the report. I'll take a look.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Re: bash on Tru64

2021-06-30 Thread Chet Ramey

On 6/29/21 4:38 PM, Jay K wrote:


rm -f man2html.o
cc -c  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
-Wno-parentheses -Wno-format-security man2html.c
cc  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
-Wno-parentheses -Wno-format-security man2html.o -o man2html
ld:
Invalid flag usage: Wno-parentheses, -Wx,-option must appear after 
-_SYSTYPE_SVR4
ld: Usage: ld [options] file [...]
make[1]: *** [Makefile:80: man2html] Error 1
make[1]: Leaving di

I think the flags are ok on the compiler, ignored, but error on the linker.
They should be autoconfed? Eh, they probably are, but then compiler is linker.
Remove them for linking?


Did the same thing happen when linking builtins/mkbuiltins?

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Re: bash on Tru64

2021-06-30 Thread Jay K
> Did the same thing happen when linking builtins/mkbuiltins?

Yes.

> make
rm -f mksyntax
cc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"alphaev67"' -DCONF_OSTYPE='"osf5.1b"' 
-DCONF_MACHTYPE='"alphaev67-dec-osf5.1b"' -DCONF_VENDOR='"dec"' 
-DLOCALEDIR='"/usr/users/jay/share/locale"' -DPACKAGE='"bash"' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib -I./lib/intl 
-I/usr/users/jay/s/bash-5.1.8/lib/intl  -g -Wno-parentheses 
-Wno-format-security    -g -Wno-parentheses -Wno-format-security    -g 
-Wno-parentheses -Wno-format-security  -o mksyntax ./mksyntax.c
ld:
Invalid flag usage: Wno-parentheses, -Wx,-option must appear after 
-_SYSTYPE_SVR4
ld: Usage: ld [options] file [...]


> cd builtins
> make
...
rm -f mkbuiltins.o
cc -c  -DHAVE_CONFIG_H -DSHELL  -I. -I..  -I.. -I../include -I../lib -I. 
-I../lib/intl -I/usr/users/jay/s/bash-5.1.8/lib/intl   -g -Wno-parentheses 
-Wno-format-security  mkbuiltins.c
cc  -g -Wno-parentheses -Wno-format-security  -g -Wno-parentheses 
-Wno-format-security  -o mkbuiltins mkbuiltins.o
ld:
Invalid flag usage: Wno-parentheses, -Wx,-option must appear after 
-_SYSTYPE_SVR4
ld: Usage: ld [options] file [...]
make: *** [Makefile:223: mkbuiltins] Error 1

> cd support/
> make
rm -f man2html.o
cc -c  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
-Wno-parentheses -Wno-format-security man2html.c
cc  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
-Wno-parentheses -Wno-format-security man2html.o -o man2html
ld:
Invalid flag usage: Wno-parentheses, -Wx,-option must appear after 
-_SYSTYPE_SVR4
ld: Usage: ld [options] file [...]
make: *** [Makefile:80: man2html] Error 1


Thank you,
 - Jay


From: Chet Ramey 
Sent: Wednesday, June 30, 2021 5:33 PM
To: Jay K ; bug-bash@gnu.org 
Cc: chet.ra...@case.edu ; Larkin Nickle 
Subject: Re: bash on Tru64 
 
On 6/29/21 4:38 PM, Jay K wrote:

> rm -f man2html.o
> cc -c  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
> -Wno-parentheses -Wno-format-security man2html.c
> cc  -DHAVE_CONFIG_H -DSHELL  -I/usr/users/jay/s/bash-5.1.8 -I..   -g 
> -Wno-parentheses -Wno-format-security man2html.o -o man2html
> ld:
> Invalid flag usage: Wno-parentheses, -Wx,-option must appear after 
> -_SYSTYPE_SVR4
> ld: Usage: ld [options] file [...]
> make[1]: *** [Makefile:80: man2html] Error 1
> make[1]: Leaving di
> 
> I think the flags are ok on the compiler, ignored, but error on the linker.
> They should be autoconfed? Eh, they probably are, but then compiler is linker.
> Remove them for linking?

Did the same thing happen when linking builtins/mkbuiltins?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftiswww.cwru.edu%2F~chet%2F&data=04%7C01%7C%7C2e6188cdbca9418c9e9508d93bed3e46%7C84df9e7fe9f640afb435%7C1%7C0%7C637606712398988868%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Db%2Ff5QTvH5%2Br8au7%2Ftt%2F%2B2Hsx2tfMqVMC6cjzR3Qd1Y%3D&reserved=0


Re: bash on Tru64

2021-06-30 Thread Chet Ramey

On 6/30/21 3:34 PM, Jay K wrote:

Did the same thing happen when linking builtins/mkbuiltins?


Is this gcc?

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Re: bash on Tru64

2021-06-30 Thread Jay K
 > Is this gcc?

No, sorry if that wasn't clear. This is "native" cc.

 > which cc
 /usr/bin/cc

 > cc -V
 Compaq C V6.5-303 (dtk) on HP Tru64 UNIX V5.1B (Rev. 2650)
 Compiler Driver V6.5-302 (dtk) cc Driver

 - Jay


From: Chet Ramey 
Sent: Wednesday, June 30, 2021 7:42 PM
To: Jay K ; bug-bash@gnu.org 
Cc: chet.ra...@case.edu ; Larkin Nickle 
Subject: Re: bash on Tru64

On 6/30/21 3:34 PM, Jay K wrote:
>> Did the same thing happen when linking builtins/mkbuiltins?

Is this gcc?

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.edu
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftiswww.cwru.edu%2F~chet%2F&data=04%7C01%7C%7C7c3f97bd1c5349f571d208d93bff3727%7C84df9e7fe9f640afb435%7C1%7C0%7C637606789602445436%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eoLhpQdtaB%2B4QHkaA3gV0mbpqu4gckTbg2inztwdlfc%3D&reserved=0


Re: bash on Tru64

2021-06-30 Thread Chet Ramey

On 6/30/21 4:05 PM, Jay K wrote:

  > Is this gcc?

No, sorry if that wasn't clear. This is "native" cc.


OK, that gives me a pretty good idea about the root cause. Thanks.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Re: shell-backward-kill-word needs to behave more like werase

2021-06-30 Thread Basin Ilya
Upgrading to bash5.1 solved the problem.

On 29.06.2021 14:26, Basin Ilya wrote:
> I'll try to build bash 5 for Cygwin and reply here
> 
> On 29.06.2021 11:00, Andreas Schwab wrote:
>> On Jun 29 2021, Basin Ilya wrote:
>>
>>> However, shell-backward-kill-word erases the word immedeately
>>> preceding the caret plus it erases one additional space.
>>
>> Does it?  Not for me.
>>
>> Andreas.
>>