gettext feature request

2021-07-24 Thread Jean-Jacques Brucker
Planning to use the /$"string/" feature in my bash code made me think too much : https://github.com/foopgp/bash-libs/tree/main/i18n ...what I really *love* to see in bash, is a /$'string'/ feature, which doesn't parse any «`» or «$» characters. Did you already discuss about that ? Is ther

Re: gettext feature request

2021-07-24 Thread Jean-Jacques Brucker
Le 24/07/2021 à 20:48, Chet Ramey a écrit : So you want a translation feature without any further interpretation? Or one just without command substitution? Translation feature without any further interpretation. pros: * eases interoperability of *.mo files (eg: may then be shared with wi

Re: gettext feature request

2021-07-27 Thread Jean-Jacques Brucker
Le 27/07/2021 à 16:39, Chet Ramey a écrit : That's not a good name. It provides no insight about the option or its purpose. Maybe something like `quote_translation'. You are right. And I was sorely lacking in imagination. That's not backwards compatible, so the best thing for you to do would b

Re: gettext feature request

2021-07-27 Thread Jean-Jacques Brucker
I configured the list to only receive digests of bug-bash mailing list. So I didn't read your message before looking up myself into archive : https://lists.gnu.org/archive/html/bug-bash/2021-07/msg00059.html > So, most people have simply written the whole thing off as a lost cause. > The best a

Re: gettext feature request

2021-07-29 Thread Jean-Jacques Brucker
I configured the list to only receive digests of bug-bash mailing list. So I didn't read your message before looking up myself into archive : https://lists.gnu.org/archive/html/bug-bash/2021-07/msg00059.html > So, most people have simply written the whole thing off as a lost cause. > The best a

Re: gettext feature request

2021-07-31 Thread Jean-Jacques Brucker
Le 29/07/2021 à 21:08, Chet Ramey a écrit : How about `noexpand_translation'? It sounds good ! (imho). IMHO bash already suffers of having too many options. And using, or not, one of those often breaks compatibility. It's not really a matter of having too many options, as long as the de

Re: gettext feature request

2021-08-11 Thread Jean-Jacques Brucker
Le 10/08/2021 à 17:22, Chet Ramey a écrit : This is the current description: noexpand_translation If set, bash encloses the translated results of $"..." quoting in single quotes instead of double quotes. If the string is not translate

Re: gettext feature request

2021-08-13 Thread Jean-Jacques Brucker
Le 12/08/2021 à 16:29, Chet Ramey a écrit : On 8/11/21 6:35 PM, Jean-Jacques Brucker wrote: Thank a lot Chet. I still think it would have been more consistent to extend the $'...' syntax. Why would it be more consistent to add translation to a quoting syntax that didn't have

lseek with bash

2011-12-09 Thread Jean-Jacques Brucker
Playing with flock to securely access to a file shared by multiple process. I noticed there are no documented way to do an lseek on an opened fd with bash : #!/bin/bash exec 18<>/tmp/resource flock 18 # (...) read and analyze the resource file # ?? there is no documented way to seek or rewind in

lseek in bash

2011-12-10 Thread Jean-Jacques Brucker
playing with flock to securely access to a file shared by multiple process. I noticed there are no documented way to do an lseek on an opened fd with bash : #!/bin/bash exec 18<>/tmp/resource flock 18 # (...) read and analyze the resource file # ?? there is no documented way to seek or rewind in

race bug !?

2021-01-28 Thread Jean-Jacques Brucker
100 % reproducible on my Debian, package version 5.1-2: $ echo "dc30a6d79f3b47e310b8b9f5fbadba57" | tee >( xxd  -r -p | base64) | tee >(xxd  -r -p | basenc --base64url ) dc30a6d79f3b47e310b8b9f5fbadba57 3DCm1587R+MQuLn1+626Vw== 3DCm1587R-MQuLn1-626Vz0Vhw== I first thought I missed somethin

Re: race bug !?

2021-01-29 Thread Jean-Jacques Brucker
quot; |  tee >( head -c 4 ; echo ; ls -l /proc/self/fd ) | { tee >(xxd  -r -p | basenc --base64 ) ; ls -l /proc/self/fd ; } Cheers, Le 29/01/2021 à 14:50, Chet Ramey a écrit : On 1/28/21 6:33 PM, Jean-Jacques Brucker wrote: 100 % reproducible on my Debian, package version 5.1-2: