Re: Potentially misleading documentation of SECONDS variable

2024-08-14 Thread felix
The variable $SECOND won't intend to be exact to the nanoseconds! Not even to 1/100th... This variable is intended to show current time of execution, at SECOND resolution. This variable is simply incremented each time SYSTEM CLOCK increment his SECOND part of current time. Try this little command

Re: improving '{...}' in bash?

2024-08-14 Thread felix
This will juste require embeding second braces: Le Tue, Jul 23, 2024 at 07:50:24AM +0200, Harald Dunkel a écrit : > % echo x{1..3,5}x > x1..3x x5x > > I would have expected "x1x" and "x1x x2x x3x x5x". Try: $ echo x{{1..3},5}x x1x x2x x3x x5x -- Félix Hauri -- http://www.f-

Re: pwd and prompt don't update after deleting current working directory

2024-08-14 Thread felix
Le Tue, Jul 16, 2024 at 09:08:14AM -0400, Chet Ramey a écrit : > On 7/16/24 3:47 AM, David Hedlund wrote: > > > > > > pwd -P >/dev/null 2>&1 || cd .. > > > > > Do you think that it would be appropriate to submit this feature request > > to the developers of the rm command instead. > > You can tr

Re: yet another $(case ... parse bug

2024-06-21 Thread felix
Le Thu, May 23, 2024 at 08:19:49PM +0300, Oğuz a écrit : > > $ bash -c 'for (( $(case x in x) esac);; )); do :; done' >From there, I've tested: bash-5.3-alpha$ uname=1 bash-5.3-alpha$ echo $(( uname - $(echo 1) )) 0 bash-5.3-alpha$ echo $(( uname - $(case x in x) echo 1;exit;;esac;echo 0)

Re: [Help-bash] difference of $? and ${PIPESTATUS[0]}

2024-04-22 Thread felix
Le Mon, Apr 22, 2024 at 10:56:03AM +0300, Oğuz a écrit : > > Me neither, but the current behavior is useful. I agree! Anyway, reading man page, `$?` have to be equivalent to `${PIPESTATUS[-1]}`! which is not always the case. > I've never seen anything like that in a real shell script. I have to

Re: [Help-bash] difference of $? and ${PIPESTATUS[0]}

2024-04-22 Thread felix
Le Mon, Apr 22, 2024 at 07:44:48AM +0100, Kerin Millar a écrit : > On Mon, 22 Apr 2024, at 7:13 AM, felix wrote: > > ... > > if ls /wrong/path | wc | cat - /wrong/path | sed 'w/wrong/path' > > >/dev/null ; then > > echo Don't print t

Re: [Help-bash] difference of $? and ${PIPESTATUS[0]}

2024-04-21 Thread felix
Hi, Comming on this very old thread: On Wed, 4 Dec 2013 14:40:11 -0500, Greg Wooledge wrote: > > The most obvious difference is that $? is shorter. > > $? is also POSIX standard (older than POSIX in fact), so it works in sh > scripts as well. PIPESTATUS is a Bash extension. > > Finally, note

Re: Examples of concurrent coproc usage?

2024-04-17 Thread felix
Some other way of thinking: > On 3/14/24 5:58 AM, Carl Edquist wrote: > > ... > > But if you try... > > > > $ coproc WC { wc; } > > $ coproc CAT { cat; } > > $ exec {WC[1]}>&- > > $ read -u ${WC[0]} X > > > > # HANGS To prevent `exec {WC[1]}>&-` to close both FD, just

Re: printf %n is not documented

2023-01-07 Thread felix
My two cents: Le Tue, Dec 27, 2022 at 03:44:29PM -0500, Chet Ramey a écrit : > > So maybe the better thing to do is to list the set of valid format > specifiers from the standard printf(3) set. > I'm not a C programmer, so I didn't hear about `printf %n` before this thread. Re-reading all `man {

Localised variables become exposed to environment when FUNCNEST reached

2022-11-27 Thread felix
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux medium 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.2 Patch Le

Performances comparission between 5.1 and 5.2.

2022-08-15 Thread felix
Configuration Information: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux medium 5.10.0-12-amd64 #1 SMP Debian 5.10.103-1 (2022-03-07) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.2 Patch Level: 0 Release Status: rc2 Description:

Re: Arbitrary command execution from test on a quoted string

2021-10-31 Thread felix
Unfortunely, this won't be useable with associative array, like: declare -A AssocVar='([Some string.]=foo)' test -v AssocVar['Some string.'] && echo yes || echo no yes isvar AssocVar['Some string.'] && echo yes || echo no no But Lea's solution seem work: test "${AssocVar['Some

Re: ?maybe? RFE?... read -h ?

2021-09-06 Thread felix
On Mon, Sep 06, 2021 at 08:11:20AM -0400, Greg Wooledge wrote: > The real one looks like this: > unicorn:~$ help realpath > realpath: realpath [-csv] pathname [pathname...] > Display pathname in canonical form. > > Display the canonicalized version of each PATHNAME argument, resolvin

Re: Why tail coreutil cannot work as its input is from tee

2021-09-06 Thread felix
Because your last pipe will pipe BOTH output of `echo` AND `head` with delay due to fork, head output will comme after. try this: echo -e '9\n4\n3\n2\n8\n7\n3\n1' |tee >(head -1 >&2) |tail -1 or echo -e '9\n4\n3\n2\n8\n7\n3\n1' |tee >(head -1 >&2) >(tail -1 >&2) >/dev/null ... On Mon, Sep

Re: ?maybe? RFE?... read -h ?

2021-09-05 Thread felix
On Sun, Sep 05, 2021 at 11:54:05PM -0400, Lawrence Velázquez wrote: > On Sun, Sep 5, 2021, at 11:11 PM, Dale R. Worley wrote: > > > ... I was wondering, is there a way for bash to know where the > > > symlink points (without using an external program)? > > The distribution ships with a "realpath

Re: Squiggly heredoc - new feature request

2021-08-31 Thread felix
Hi, > ... ignoring both leading spaces and leading tabs. eg. Something like (there must be nothing but tabulation before closing ``EOF'')? func(){   sed 's/^ \{2\}//' <<- EOF     blabla   EOF } Depending on how and why, there is a lot of *variants*: - leading spaces and/or/not

Issue with parameter expansion with array when index > 2^31

2021-08-05 Thread felix
Configuration Information: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux medium 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.1 Patch Level

Re: gettext feature request

2021-07-28 Thread felix
On Tue, Jul 27, 2021 at 10:44:09PM +0200, Jean-Jacques Brucker wrote: > > I like what you wrote 12 years ago ( > https://lists.gnu.org/archive/html/bug-bash/2009-02/msg00258.html ). IMHO, > it could have change some people's mind about bash, and could have saved > developer energy. > > > > $'...

Re: `&>' doesn't behave as expected in POSIX mode

2021-06-20 Thread felix
On Sun, Jun 20, 2021 at 10:18:59AM -0400, Eli Schwartz wrote: > > *Neither* behavior is similar to e.g. dash's behavior, or for that > matter ksh. Both print the uname output after registering it as a > backgrounded job (redirection does not get applied to the command itself). Quick comparission

Re: [PATCH] Prefer non-gender specific pronouns

2021-06-07 Thread felix
I totally agree with Léa: Awesome patch, but... Please stop this troll! As children of Gaia for me, there's no matter if Greg is a woman or Léa a men... Are bash male or female!? This forum is technical, not political! I've already seen many human groups splited because of stupid consideration

Re: [patch #10070] toggle invert flag when reading `!'

2021-05-25 Thread felix
On Mon, May 24, 2021 at 11:47:32AM -0400, Chet Ramey wrote: > On 5/22/21 2:45 PM, Vincent Menegaux wrote: > > > Details: > > > > Previously, these commands: > > > >[[ ! 1 -eq 1 ]]; echo $? > >[[ ! ! 1 -eq 1 ]]; echo $? > > > > would both result in `1', since parsing `!' set CMD_INVERT_R

Re: Undocumented feature: Unnamed fifo '<(:)'

2021-04-08 Thread felix
On Fri, Apr 09, 2021 at 01:23:09AM +0200, Léa Gris wrote: > > You could have a look: > >https://f-hauri.ch/vrac/mandelbrot_backgndBc.sh.txt > >https://f-hauri.ch/vrac/mandelbrot_backgndBc_4macOs.sh.txt > Have a look at my POSIX/shell version that is even slightly faster: > https://gist.git

Re: Undocumented feature: Unnamed fifo '<(:)'

2021-04-08 Thread felix
Comming back on this 10month old thread... On Tue, Jun 30, 2020 at 12:30:53PM -0400, Chet Ramey wrote: > On 6/28/20 9:49 AM, felix wrote: > > > Bash Versions: 3.2.57(1)-release, 5.0.3(1)-release, 5.1.0(1)-alpha > > > > In order to reduce forks and make some tasks a lot q

Re: zsh style associative array assignment bug

2021-03-31 Thread felix
Quick array assignment from command... > On Tue, Mar 30, 2021 at 12:42:46PM -0400, Eric Cook wrote: > > eval 'tags=('"${*@Q}"\) On Tue, Mar 30, 2021 at 01:16:14PM -0400, Greg Wooledge wrote: > declare -A tags=() > while IFS=\| read -r tag value; do > tags[$tag]=$value > done < <(exiftool ...)

Re: missing way to extract data out of data

2021-03-25 Thread felix
I think, memory footprint doesn't really matter when standard availlable ram is lot away... But *time required to ``fork''* could matter: QuickTest() { local TIMEFORMAT='%R ( %U + %S )'; printf "%-10s: " "${1##*/}"; time for i in {1..1000}; do res=$("$@"); done;

Re: 'exec' produced internal code output instead of normal

2021-03-15 Thread felix
On Sat, Mar 13, 2021 at 01:05:32AM +0100, Alex fxmbsw7 Ratchev wrote: > i have no example to write here as this was past long Without sample, i'ts hard to represent your case! > the story was, i was coding a file server daemon, with socat, Wow! > and i figured to use exec why not more exact more

uname lead to embed code execution

2021-03-01 Thread felix
There it is: $ declare -A map; key='foo$(uname >/dev/tty)bar'; map[$key]= $ echo map["$key"] map[foo$(uname >/dev/tty)bar] $ echo ${map["$key"]} $ unset map["$key"] Linux Or even: $ declare -A map; key='foo$(read -t 3 /dev/tty bar: $foo)bar'; map[$key]= ... $ unset map["$key"] baz # hitted in

Re: is it normal that set -x unset commands dont display special chars in the content

2021-03-01 Thread felix
On Sun, Feb 28, 2021 at 10:32:13PM +, k...@plushkava.net wrote: > Why not indeed. However, I think that I'm able to decipher this. > > $ declare -A map; key=$'foo\34bar'; map[$key]= > $ set -x > $ : "$key" > + : $'foo\034bar' > $ unset "map[$key]" > + unset 'map[foobar]' > > For the unset com

Re: [PATCH] Fix blocking read timeouts at a small probability

2021-02-16 Thread felix
On Mon, Feb 15, 2021 at 09:41:29AM -0500, Chet Ramey wrote: > Just for testing, not for any real use case. > > > He also provided me with his new test case > > to see the interaction with SIGCHLD. The failure of this test case > > seems to have also involved SIGCHLD in the previous devel Bash. Now

Re: feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-08 Thread felix
On Fri, Feb 05, 2021 at 09:29:49PM +0100, Alex fxmbsw7 Ratchev wrote: > .. > > var=mynewfoo > printf ${var~~n[^f]+} > -> > myfoo > > and also multiple expanders inside one statement would greatly speed up > processment and also fulfill old greatly coding wanting possibilities This could be

Re: V+=1 doesn't work if V is a reference to an integer array element

2021-01-15 Thread felix
This seem linked: $ f() { local -a a=('' 'foo'); local -n b=a[1]; echo $b; b+=\ bar; echo $b; declare -p a; } $ f foo foo bar declare -a a=([0]="" [1]="foo bar") Ok, fine! $ bash <(declare -f f | sed '1,2d; $s/.*/echo $BASH_VERSION

Re: Bug Using Brackets

2021-01-06 Thread felix
Hi, On Wed, Jan 06, 2021 at 11:32:49PM +0800, Harry Lee wrote: > root@server:~# bash -version > GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) > Copyright (C) 2019 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > > This is

Strange behaviour using negative index in arrays

2021-01-02 Thread felix
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux medium 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux Machine Type: x86_64-pc-

Re: New Feature Request

2020-12-28 Thread felix
I agree: python seem to be more apropriated language for complex operation. Anyway, bash already offer a lot of features (like `coproc` and `read -t 0`) usefull for IPC. I wrote a little ``multiping`` bash script, as multithread demo, running many parallels ping, reading all outputs and merging t

Re: No expansions performed while declaring an associative array using a list of keys and values

2020-12-14 Thread felix
On Fri, Dec 11, 2020 at 03:08:04PM +0300, Oğuz wrote: > I was trying the new features of bash 5.1 and came across this inconsistent > behavior: > > $ foo='1 2' > $ declare -A bar=($foo 3) > $ declare -p bar > declare -A bar=(["\$foo"]="3" ) > $ > $ bar+=($foo 3) > $ dec

Re: bash doesn't display user-typed characters; can interfere with COPY/PASTE

2020-12-08 Thread felix
On Tue, Dec 08, 2020 at 08:07:18PM +0700, pepa65 wrote: > On 08/12/2020 19.55, Greg Wooledge wrote: > > Some terminals, when fed a tab character, will preserve that knowledge > > in memory; then, when you copy text from that part of the terminal > > window using your mouse, the terminal will put a

Re: increment & decrement error when variable is 0

2020-11-25 Thread felix
On Mon, Nov 23, 2020 at 05:20:22PM -0500, Greg Wooledge wrote: > On Mon, Nov 23, 2020 at 07:36:29PM +, Jetzer, Bill wrote: >... > Exercises 1 and 2 apply directly... >From man bash: ((expression)) The expression is evaluated according to the rules described be‐

Re: [ping] declare -c still undocumented.

2020-11-13 Thread felix
On Fri, Nov 13, 2020 at 12:19:27AM +0100, Léa Gris wrote: > > Happy 10 years 10 months anniversary to the issue: > > > > > address@hidden:~$ declare -c moo=moo; echo $moo > > Moo cap() { local -ca _cap=("$@");

Re: bash: please provide an easy way to spawn a new process group from script

2020-11-01 Thread felix
On Sun, Nov 01, 2020 at 11:13:37AM +0100, clime wrote: > On Sun, 1 Nov 2020 at 11:01, Oğuz wrote: > > > > You can use the loadable builtin `setpgid' if you have to. Assuming > > BASH_LOADABLES_BUILTIN is set, this should work: > > > > enable -f setpgid{,} > > { setpgid $BASHPID{,}; a | b;

Re: read with very small timeout sometime hand on stdin

2020-11-01 Thread felix
On Thu, Oct 29, 2020 at 01:57:33PM +0100, felix wrote: > > I can't reproduce this using the following stripped-down reproducer: Sorry to insist, but... This is not easy because not constant. For this, I wrote a little script tested on several host, then searching for installation t

Re: read with very small timeout sometime hand on stdin

2020-10-29 Thread felix
On Wed, Oct 28, 2020 at 09:23:09AM -0400, Chet Ramey wrote: > > I can't reproduce this using the following stripped-down reproducer: > trap 'echo $f ; exit' SIGINT > > for f in {1..1}; do > read -t .01 v > if [ $? -ne 142 ]; then > echo $f: $? > fi > done

read with very small timeout sometime hand on stdin

2020-10-28 Thread felix
Configuration Information: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux medium 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.1 Patch Level:

Re: Subject: Pressing Ctrl-C during any subshell evaluation terminates the shell

2020-10-13 Thread felix
Issue 627 in direnv's github project show: To reproduce this simply: PROMPT_COMMAND="trap -- '' SIGINT; sleep 0.1; trap SIGINT;" read foo ^C -- will exit current shell -- On Mon, Oct 12, 2020 at 09:52:21PM -0700, Daniel Farina wrote: > On Sun, Oct 11, 2020 at 12:59 PM Che

Re: Bash-5.1-beta available

2020-09-23 Thread felix
Hi, On Mon, Sep 21, 2020 at 09:13:13PM -0400, Dale R. Worley wrote: > Andreas Schwab writes: > I assume that if you really want the old effect, you can still do > > exec {dup}<&1 You mean: exec {dup}<&0 > > ... <( ... <$dup ) ... and: ... <( ... <&$dup ) ... > > exec {dup}<&

Re: Undocumented feature: Unnamed fifo '<(:)'

2020-07-01 Thread felix
Thanks Pierre, On Sun, Jun 28, 2020 at 10:48:42PM +0200, Pierre Gaston wrote: > Maybe "coproc" is already the feature you need (limited to only 1 though)? Correct: I missed this! This work fine: coproc stdbuf -o0 date -f - +%s 2>&1 DATEIN=${COPROC[1]} DATEOUT=$COPROC echo >&$DATEIN 2009-

Re: Undocumented feature: Unnamed fifo '<(:)'

2020-06-28 Thread felix
I totally agree, but this work from at least bash-3.2 upto last version! But if a bug, a feature request: exec 8< 9> <>(date -f - +%s) ( ..or, but I don't imagine how this could be implemanted: exec 8<> <>(date -f - +%s) :-p ) ... AND even: Same `-u` option for `read -u $FD` available for

Re: Undocumented feature: Unnamed fifo '<(:)'

2020-06-28 Thread felix
+%s > } > > _out=$(date_to_epoch "$_string") > On Sun, Jun 28, 2020, 8:50 AM felix wrote: > > ... > > _fifo=$(mktemp -u /tmp/fifo-) > > mkfifo $_fifo > > exec 9> >(exec stdbuf -o0 date -f - +%s >$_fifo 2>&1) > &

Undocumented feature: Unnamed fifo '<(:)'

2020-06-28 Thread felix
Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-2bxm7h/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname output: Linux medium 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04

Re: Command substitution

2020-06-02 Thread felix
Quoting is useless when assigning variable from ouptut of command or another variable: $ foo=1 2 3 4 bash: 2: command not found Ok. But $ foo=$(seq 1 3) $ declare -p foo declare -- foo="1 2 3" $ foo="$(seq 1 3)" $ declare -p foo declare -- foo="1 2

Difference between EPOCHREALTIME and EPOCHSECONDS

2020-04-14 Thread felix
Configuration Information: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux medium 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level:

Typo in german translation

2018-07-19 Thread felix . ostmann
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA

Typo in german translation

2018-07-19 Thread Felix Ostmann
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE

Re: Broken PIPESTATUS with --disable-job-control

2016-10-15 Thread Felix Janda
Chet Ramey wrote: > On 9/18/16 11:20 PM, Felix Janda wrote: > > >>> Notice that the configure script disables job-control when a run-time > >>> test (which could easily be a built-time test) fails. So by default, > >>> a cross-compiled bash will have thi

Re: Broken PIPESTATUS with --disable-job-control

2016-09-19 Thread Felix Janda
Chet Ramey wrote: > On 9/18/16 11:20 PM, Felix Janda wrote: > > >>> Notice that the configure script disables job-control when a run-time > >>> test (which could easily be a built-time test) fails. So by default, > >>> a cross-compiled bash will have thi

Re: Broken PIPESTATUS with --disable-job-control

2016-09-18 Thread Felix Janda
Chet Ramey wrote: > On 9/17/16 1:27 PM, Felix Janda wrote: > > Hello, > > > > below this mail you can find a minimal script misbehaving when > > job-control is configured out (tested on linx with different archs, > > libc's, and versions (including curren

Broken PIPESTATUS with --disable-job-control

2016-09-17 Thread Felix Janda
-time test) fails. So by default, a cross-compiled bash will have this bug. -- Felix #!/bin/bash g() { p=$PIPESTATUS if [[ $p -ne 0 ]] then echo FAIL!! fi } f() { false && false true | true g } f

Re: completion of '../' with symlink component in CWD path

2013-03-30 Thread Felix
like a bug -- I can't think of a conceptual reason why ">" would, by design, behave differently from tab completion, especially since you can tab-complete its destination. i.e. if you start typing something like cat > ../fo and it helpfully completes to cat > ../foo ...then that really should work when you press the return key. ~Felix.

completion of '../' with symlink component in CWD path

2013-03-29 Thread Felix
sedir' (output redirection). ...after thinking about this, I've managed to confuse myself and am not sure which behaviour should be considered correct. ~Felix.

show-all-if-ambiguous inserts spurious backslashes

2013-03-10 Thread Felix
y not what the user wanted. ~Felix.

square bracket vs. curly brace character ranges

2012-09-13 Thread Felix
tive range, but with it using sequence values instead, it's useless). The sheer number of threads we've got complaining about locale-dependent [a-c] suggests to me that the software should be changed to just do what people expect, especially since nothing is really lost by doing so. Oh well. Dead horses and all that -- but can we at least make the dead horses consistent? :) ~Felix.

Re: incremental history i/o? (was Re: A Feature Request for History)

2011-06-17 Thread Marcel (Felix) Giannelia
a command has to be to go in it (store "mount -o loop,ro,uid=1000 -t vfat /some/file /mnt/temp" but ignore "cd ~" 'cause you really don't need Ctrl+R to remember the latter). ~Felix. On 16/06/11 12:55, Bradley M. Kuhn wrote: I agree with Marcel's points abou

Re: A Feature Request for History

2011-06-14 Thread Marcel (Felix) Giannelia
before, like 6 years ago, what was it... Ctrl+r (some short string that you know was in that command somewhere) Ah, right, that's it." ~Felix. On 2011-06-13 21:48, Michael Witten wrote: On Mon, Jun 13, 2011 at 17:10, Bradley M. Kuhn wrote: I have all my bash history going back to 20

Re: documentation bug re character range expressions

2011-06-09 Thread Marcel (Felix) Giannelia
n info manual have something like "The full documentation for ls is maintained as a Texinfo manual. If the info and ls programs are properly installed [...]") Guess it's time I really learned how to navigate texinfo... (Do I come across as old-fashioned nowadays for still using man?) ~Felix.

Re: documentation bug re character range expressions

2011-06-08 Thread Marcel (Felix) Giannelia
squeaks by as being technically correct -- in the sorting example I gave above, where 'C' was between 'a' and 'c', only collation weights were in play, not sequence numbers, whereas if one is forced to sort by comparing 'c' to 'C', collation sequence numbers come into play as the tie-breaker. So saying "using the collating sequence" implies a similar situation, and would force 'C' to come after 'c'.) ~Felix.

Re: documentation bug re character range expressions

2011-06-03 Thread Marcel (Felix) Giannelia
On Fri, June 3, 2011 10:03, Greg Wooledge wrote: > On Fri, Jun 03, 2011 at 09:12:07AM -0700, Marcel (Felix) Giannelia wrote: > > [...] > > In HP-UX's en_US.iso88591 locale, the characters are in a COMPLETELY > different order. You can't easily figure out what that

Re: documentation bug re character range expressions

2011-06-03 Thread Marcel (Felix) Giannelia
On 2011-06-03 05:00, Greg Wooledge wrote: On Fri, Jun 03, 2011 at 12:06:32AM -0700, Marcel (Felix) Giannelia wrote: Is it really a programmer mistake, though, to assume that [A-Z] is only capital letters? Yes, it is. You should be using [[:upper:]], or you should be setting LC_COLLATE=C if

Re: documentation bug re character range expressions

2011-06-03 Thread Marcel (Felix) Giannelia
on, if it is actually broken as you describe. And no, I'm going to keep very quiet about this "bug" in grep -- because it's working the way I want/expect it to, and it'll doubtless break many, many shell scripts and cause data loss for a fair number of people if it were fixed :) ~Felix.

Re: documentation bug re character range expressions

2011-06-03 Thread Marcel (Felix) Giannelia
e man page says it obeys LC_COLLATE and the locale, actually has [a-c] equivalent to [abc] on all locales. Someone must have snuck in and fixed it. I'm guessing that if grep were to start using locale-aware character ranges, a heck of a lot more people would complain than do about bash. Th

documentation bug re character range expressions

2011-06-02 Thread Marcel (Felix) Giannelia
rvent hope that the insanity of that last paragraph will be recognized (when is [a-c] being equivalent to [aAbBc] ever useful?!), and that this will eventually lead to character ranges becoming useful again regardless of the current locale. But in the mean time, I would settle for a documentation change, and will continue to "export LC_COLLATE=C"! :) ~Felix.

Re: spaces in the shebang interpreter path

2008-05-11 Thread Felix Schwarz
Hi Bob, hi Paul, thanks for your detailed explanations. So I agree that this is not a bash bug ;-) Maybe in ten years we will see a Un*x release which will allow the use of spaces in the shebang line *dreaming*. thanks again fs smime.p7s Description: S/MIME Cryptographic Signature

spaces in the shebang interpreter path

2008-05-11 Thread Felix Schwarz
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale

Sup

2005-02-18 Thread Felix Mathews
<>___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash