Re: Incorrect positioning when long prompt contains ANSI escape sequences + UTF-8 LANG

2024-08-10 Thread Gioele Barabucci

On 09/08/24 10:18, Martin D Kealey wrote:

Does this problem occur with other versions of Bash?


Hi Martin,

thank you for the detailed troubleshooting instructions.

This problem occurs with both Bash 5.0.17 (Ubuntu) and 5.2.21 (Debian)


With other versions of libreadline.so?


I'm currently not able to test with other versions of readline.


With other terminal emulators?


These artifacts can be seen using the aforementioned versions of Bash 
inside xterm 353 and gnome-terminal 3.36.2.



1. report the output from these commands:

echo term=$TERM
e=( enabled disabled )
tput am ; echo right-auto-margin=${e[$?]:-$?}
tput bw ; echo left-auto-margin=${e[$?]:-$?}
tput sam ; echo semi-auto-margin=${e[$?]:-$?}


For all four combinations:

term=xterm-256color
right-auto-margin=enabled
left-auto-margin=disabled
semi-auto-margin=disabled

2. report the active auto-margin setting in your terminal emulator, at 
the point where you observe the issue (and before entering or erasing 
anything)


I haven't found a way to discover that for gnome-terminal.

For xterm, before and after observing this issue:

* Enable Auto Wraparound: true
* Enable Reverse Wraparound: false

Regards,

--
Gioele Barabucci



Re: whats wrong , exit code 11 on android termux

2024-08-10 Thread Chris Elvidge

On 10/08/2024 at 03:01, Martin D Kealey wrote:

On Thu, 8 Aug 2024 at 03:14, alex xmb sw ratchev  wrote:


mr chet



I REALLY get annoyed when strangers call me "Mister Martin" or write "Mr
Martin". I am NOT a child, so how DARE they mock me like that.

The short version: Some folk don't care, others don't know any better, but
if you suspect the person you're talking to is over 40, I would strongly
recommend you avoid this style of address - unless of course you WANT to
mock them.

The longer version: My family name is "Kealey", and my given name is
"Martin". Only small children (or adults too young to know better) allow
themselves to be called by an honorific with their first name, unless the
two people are very close friends or family.

If you really need to be formal, write "Mr Kealey", but otherwise just call
me "Martin". (*1)

If anyone tells you that honorific+given name is the preferred polite way
to talk to older people, tell them you know someone whose native language
is English who says that what they're saying is "polite" is actually an
insult to older people, and if they still don't believe you, tell them to
contact me directly.

-Martin Kealey

*1: if you suspect that the person is over 70, you'd best avoid their given
name entirely, and stick to honorific+surname.



Mr/Mrs Firstname is common in the subcontinent - and elsewhere in the 
middle east.

Your prejudices should not warrant a rant.


--
Chris Elvidge
England




Re: whats wrong , exit code 11 on android termux

2024-08-10 Thread alex xmb sw ratchev
On Sat, Aug 10, 2024, 04:09 Martin D Kealey  wrote:

> Sorry, that was supposed to be a personal reply off-list.
>

well dood if u get offended by such , u have no idea about what im getting
offended by , ..

On Sat, 10 Aug 2024 at 12:01, Martin D Kealey 
> wrote:
>
>> On Thu, 8 Aug 2024 at 03:14, alex xmb sw ratchev 
>> wrote:
>>
>>> mr chet
>>>
>>
>> I REALLY get annoyed when strangers call me "Mister Martin" or write "Mr
>> Martin". I am NOT a child, so how DARE they mock me like that.
>>
>> The short version: Some folk don't care, others don't know any better,
>> but if you suspect the person you're talking to is over 40, I would
>> strongly recommend you avoid this style of address - unless of course you
>> WANT to mock them.
>>
>> The longer version: My family name is "Kealey", and my given name is
>> "Martin". Only small children (or adults too young to know better) allow
>> themselves to be called by an honorific with their first name, unless the
>> two people are very close friends or family.
>>
>> If you really need to be formal, write "Mr Kealey", but otherwise just
>> call me "Martin". (*1)
>>
>> If anyone tells you that honorific+given name is the preferred polite way
>> to talk to older people, tell them you know someone whose native language
>> is English who says that what they're saying is "polite" is actually an
>> insult to older people, and if they still don't believe you, tell them to
>> contact me directly.
>>
>> -Martin Kealey
>>
>> *1: if you suspect that the person is over 70, you'd best avoid their
>> given name entirely, and stick to honorific+surname.
>>
>


Re: whats wrong , exit code 11 on android termux

2024-08-10 Thread alex xmb sw ratchev
On Sat, Aug 10, 2024, 05:02 Oğuz  wrote:

> On Saturday, August 10, 2024, Martin D Kealey 
> wrote:
>
> > Sorry, that was supposed to be a personal reply off-list.
> >
>
> Do you always harass foreigners like that or was it an exception?
>

im not so a foreigner , .. began coding bash and awk on freenode #bash #awk
since 2002

later .. such like him came
and ruined the chat

.. greets ..

-- 
> Oğuz
>


Re: return from trap while reading with readline breaks completion

2024-08-10 Thread Chet Ramey

On 8/6/24 4:19 AM, Oğuz wrote:

See:

$ ls
foo  s
$ cat s
trap return INT
read -e
$ source s

I press Ctrl-C here and bash prompts me for the next command. Then I
press F and Tab; instead of producing the bell sound bash completes f
to foo. If I press Ctrl-C again it prints "bash: return: can only
`return' from a function or sourced script" and completion returns to
normal.


Thanks for the report. The unwind-protect to restore the completion
function wasn't being installed in the right place.

Chet

--
``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/


OpenPGP_signature.asc
Description: OpenPGP digital signature