Re: Light weight support for JSON

2022-08-31 Thread Robert E. Griffith
I am on vacation and just skimmed this long thread so I might have missed some of the context but I wanted throw out that I recently wrote a loadable plugin that among other things, can convert JSON to and from bash arrays. Anyone interested can check it out at these git repos. https://github

Re: return exit code in EXIT trap

2022-08-08 Thread Robert E. Griffith
On 8/8/22 16:38, Robert Elz wrote: There's no need for anything to make that work, when the trap action starts running $? is set to whatever it was just previously, and the code there can save and/or use that value however it sees the need. Well I'll be. I had to write a script to test it becaus

Re: return exit code in EXIT trap

2022-08-08 Thread Robert E. Griffith
Understanding now that traps are more literally like inserting an eval, what makes return in the top level trap string special is that there are two script paths behind it so its reasonable the the coder of the trap to ask from which last statement do I want to preserve the exit code. The shell

Re: return exit code in EXIT trap

2022-08-06 Thread Robert E. Griffith
On 8/6/22 14:44, Robert Elz wrote: ... bash allows a return in the trap string (not in a function called in that string) if the trap occurs while executing a function (then the return applies to that function). ... Yes! that is what I was missing.  Years ago when I wrote my debugger, I must hav

Re: return exit code in EXIT trap

2022-08-06 Thread Robert E. Griffith
Hmmm.. I just got confused when I went to do a test... $ trap 'echo hi; return' SIGUSR2 $ kill -SIGUSR2 $$ hi bash: return: can only `return' from a function or sourced script $ $ echo $BASH_VERSION 5.0.17(1)-release I also confirmed the same error in the DEBUG trap where you s

Re: return exit code in EXIT trap

2022-08-06 Thread Robert E. Griffith
On 8/5/22 21:49, Koichi Murase wrote: 2022年8月3日(水) 21:19 Robert E. Griffith : That was an interesting read. The illuminating point for me was the statement to the effect of "the POSIX specification is not meant to describe what it correct or rational, but what historically has been implem

Re: return exit code in EXIT trap

2022-08-03 Thread Robert E. Griffith
redictable. Its a bit harder for you since your users will attribute these problems to you. --BobG On 8/2/22 18:06, Koichi Murase wrote: 2022年8月3日(水) 5:57 Chet Ramey : On 8/2/22 4:18 PM, Robert E. Griffith wrote: Is there a reason why POSIX would want the return behavior to of function do

Re: return exit code in EXIT trap

2022-08-02 Thread Robert E. Griffith
https://getyarn.io/yarn-clip/cea30edb-a7a6-465b-bc51-3d53d9281447 It was worth the wait:) --BobG On 8/2/22 16:57, Chet Ramey wrote: On 8/2/22 4:18 PM, Robert E. Griffith wrote: The first (getyarn...) link renders as a blank page for me. What it is supposed to be? https://getyarn.io/yarn

Re: return exit code in EXIT trap

2022-08-02 Thread Robert E. Griffith
ote: On 8/2/22 3:38 PM, Robert E. Griffith wrote: Is it known behavior that return without a parameter will not set the exit code from the last command when called from the EXIT trap? https://getyarn.io/_nuxt/f66cb012eec875e1f9262fd77ecdf31e.svg https://lists.gnu.org/archive/html/bug-bash/2020-0

return exit code in EXIT trap

2022-08-02 Thread Robert E. Griffith
Is it known behavior that return without a parameter will not set the exit code from the last command when called from the EXIT trap? $ cat -n exitReturnBug.sh 1 #!/usr/bin/bash 2 function shouldReturnFalse() { 3 false 4

Re: functions can fully unset local vars in other scopes

2022-08-01 Thread Robert E. Griffith
I just finished reading that 2018 discussion and the current discussion. Its hard for me to understand why this is an issue. kre's use case was unset X y=$X He called it 'braindead' for it to do anything expect to assign NULL/empty to Y but I think that is far from true. If he's thinking

Re: execute_cmd.h is not included in installed headers

2022-05-02 Thread Robert E. Griffith
>> That seems reasonable. I'll add it. Cool, thanks. --BobG On 5/2/22 16:47, Chet Ramey wrote: On 5/2/22 4:03 PM, Robert E. Griffith wrote:  >> What's your use case? I have a bash script library that supports Objects and Classes in bash script. I am now writing a loa

Re: execute_cmd.h is not included in installed headers

2022-05-02 Thread Robert E. Griffith
#x27;" } declare -A spot; ConstructObject Dog spot "Spot" declare -A whiskers; ConstructObject Cat whiskers "Whiskers" $spot.speak $whiskers.speak $ bash /tmp/test.sh Spot says 'woof' Whiskers says 'meow' On 5/2/22 15

execute_cmd.h is not included in installed headers

2022-05-02 Thread Robert E. Griffith
"execute_cmd.h" is not listed in the INSTALLED_HEADERS macro which determines which headers are included for the install-headers target. Is it problematic for a loadable builtin to execute shell functions or is it maybe an oversight that that header is not included? If I build against the full

Re: Building loadable builtin

2022-04-14 Thread Robert E. Griffith
make_local_variable("this",att_nameref); this = bind_variable_value(this, pObj->vThis->name, 0); ..then in script... declare -p this ..output.. declare -- this="myObj" --BobG On 4/14/22 12:59, Jesse Hathaway wrote: On Thu, Apr 14, 2022 at 11

Building loadable builtin

2022-04-14 Thread Robert E. Griffith
I am developing a loadable builtin and I have a question about building it for distribution. I am currently building it in the "Bash-5.0 patch 17" git commit and it works fine when I run it in the bash executable built from that same commit (5.0.17(4)) but it fails when I run it in the bash fr

Expansions for array assignment not documented

2020-04-17 Thread E. Choroba
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.4 -L/home/abuild/rpmbuild/BUILD/bash-4.4/../readline-7.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -

Re: Disable microsoft telemetry

2019-10-20 Thread Gerard E. Seibert
On Fri, 18 Oct 2019 18:17:27 +0330, Behrooz Amoozad stated: >I'm not sure if this even fits here, but it would be really nice if the >default bashrc included DOTNET_CLI_TELEMETRY_OPTOUT='true'. >Currently, After installing microsoft .net framework, it has telemetry >enabled by default and it works

Re: Bash patches format

2018-05-30 Thread Marty E. Plummer
On Wed, May 30, 2018 at 04:59:15PM +0200, Christian Weisgerber wrote: > Marty E. Plummer: > > > Maintainers, I'd really like to hear your thoughts on this matter. If > > the diffs are produced as -p1 unified diffs, then downstreams who do > > convert from -p0 conte

Re: Bash patches format

2018-05-30 Thread Marty E. Plummer
On Wed, May 30, 2018 at 09:15:04AM -0400, Chet Ramey wrote: > On 5/29/18 8:25 PM, Marty E. Plummer wrote: > > >> If people are willing to do the conversion between patch formats for their > >> own purposes, more power to them. I don't see any compelling reason to

Re: Bash patches format

2018-05-30 Thread Marty E. Plummer
On Wed, May 30, 2018 at 10:30:10AM +0200, Emanuel Haupt wrote: > "Marty E. Plummer" wrote: > > On Wed, May 30, 2018 at 10:42:27AM +0800, Clark Wang wrote: > > > On Wed, May 30, 2018 at 8:25 AM, Marty E. Plummer > > > wrote: > > > > > >

Re: Bash patches format

2018-05-30 Thread Marty E. Plummer
On Wed, May 30, 2018 at 10:42:27AM +0800, Clark Wang wrote: > On Wed, May 30, 2018 at 8:25 AM, Marty E. Plummer > wrote: > > > > If people are willing to do the conversion between patch formats for > > their > > > own purposes, more power to them. I d

Re: Bash patches format

2018-05-29 Thread Marty E. Plummer
On Tue, May 29, 2018 at 11:05:45AM -0400, Chet Ramey wrote: > On 5/19/18 9:46 AM, Marty E. Plummer wrote: > > Greetings, > > > > In doing some research into ways to better improve the gentoo ebuild qa, > > I ran across the fact that the official bash patches are provide

Bash patches format

2018-05-19 Thread Marty E. Plummer
Greetings, In doing some research into ways to better improve the gentoo ebuild qa, I ran across the fact that the official bash patches are provided as -p0, context diffs. I was hoping I could convince you to convert to -p1, unified diffs, such as are produced by diff -u or git format-patch, for

Potential buffer under-run in shell_execve()

2016-08-15 Thread John E. Malmberg
Hello, In Bash 4.3.42: In execute_cmd/shell_execve(), if HAVE_BASH_BANG_EXEC is defined, the macro READ_SAMPLE_BUF has the potential to set sample_len to -1. #if defined (HAVE_HASH_BANG_EXEC) READ_SAMPLE_BUF (command, sample, sample_len); sample[sample_len - 1] = '\0'; Th

Re: reverse-i-search, multibyte backspace problem

2015-07-18 Thread e est
Hello, Thanks for pointing out the fix. I've tried the "devel" branch, and couldn't reproduce the bug there. Sorry for the disturbance, I should have checked whether the master branch really represents the bleeding edge of development. 19.07.2015, 03:53, "Eduardo A. Bustamante López" : > Hello

reverse-i-search, multibyte backspace problem

2015-07-18 Thread e est
Hello, I've noticed a bug with terminal usage of bash. Steps to reproduce: 1. Press control-r to get in reverse-i-search mode 2. Enter a key outside of the ASCII character set, like the french é or the german ä. 3. Press backspace. What to expect: The key gets removed. What happens: Instead of

Re: Source Code Bug in Bash-4.3.31 Module variables.c

2015-07-04 Thread John E. Malmberg
On 3/7/2015 10:59 AM, Eric Robertson wrote: In any case, the abort message from the OpenVMS C compiler was as follows: CC/name=(as_i,shor)/repo=lcl_root:[bash.cxx_repository]/debu/list/mach/show=(EXPA,INC)/prefix=(all,exce=(strtoimax,strtoumax))/neste d=none/define=(_USE_STD_STAT=1,_POSIX_EXI

Re: Bash-4.3 Official Patch 30

2014-10-06 Thread John E. Malmberg
On 10/6/2014 6:43 AM, Chet Ramey wrote: On 10/6/14, 1:35 AM, tsugutomo.en...@jp.sony.com wrote: Hi, + char * + parser_remaining_input () + { + if (shell_input_line == 0) + return 0; + if (shell_input_line_index < 0 || shell_input_line_index >= shell_input_line_len) + return '\0';

Re: y.tab.c inclusion within the source tree

2014-09-27 Thread John E. Malmberg
On 9/27/2014 6:49 PM, Mark Goldfinch wrote: Hi everyone, Can someone clarify to me why y.tab.c is included within the bash source tree if it is generated from parse.y? Not all platforms have up to date tools for generating y.tab.c from parse.y. Seeing that it appears likely we're going to e

Bash 4.2.45 now available for VMS at GNV site.

2013-07-29 Thread John E. Malmberg
The GNV team is pleased to announce that BASH 4.2.45 is now available for OpenVMS at the GNV site. GNV is the GNU on VMS project. Thanks to extensive work by Eric Robertson and feedback from testers of the previous Bash 4.2.39 port, this is the most accurate and functional port of Bash to VMS ye

Re: Bash 4.2.39 now available for OpenVMS Alpha/I64

2012-12-20 Thread John E. Malmberg
On 12/20/2012 9:36 AM, Chet Ramey wrote: On 12/16/12 10:51 AM, John E. Malmberg wrote: For those that want to look at the source, you can examine or check out the OpenVMS specific changes in the http://gnv.cvs.sourceforge.net/gnv/ cvs tree from the gnu_vms/bash tree with the cvs tag gnv-bash

Bash 4.2.39 now available for OpenVMS Alpha/I64

2012-12-16 Thread John E. Malmberg
bash-bugs e-mail address. The bashbug script was not provided as with these kits as it could not be made to run on OpenVMS due to issues with the native VMS editors. OpenVMS specific bugs should be reported to the tracker at https://sourceforge.net/projects/gnv/ The build procedure only uses

savestring() macro in general.h runs function arguments twice.

2012-11-23 Thread John E. Malmberg
The execute_cmd.c module uses make_command_string() as a parameter to the savestring() macro. This causes the savestring() macro to call that function twice(). I have not done any timing tests to see how this is impacting performance, but it definitely shows up when stepping through commands

Re: cygwin: glob successfully for executables without ".exe" suffix

2012-09-09 Thread John E. Malmberg
On 9/9/2012 7:52 PM, Gregory M. Turner wrote: The enclosed patch fixes (or tries to fix) the inability to glob for executable files on cygwin without the ".exe" suffix. This is required because cygwin has a hack to behave as though foo and foo.exe both exist as hardlinks to the same file, but un

sys/param.h not checked for by configure

2012-07-29 Thread John E. Malmberg
Hello all, The header file sys/param.h is not checked for by configure and is not provided by the VMS environment. I have worked around this issue by having the VMS specific build script create an empty substitute file. The HP VMS Engineering team has indicated a willingness to add the sys

Bug in patch bash42-018, leaves lastpipe_flag unitialized for platforms with out JOB_CONTROL.

2012-06-21 Thread John E. Malmberg
Hello Bash-bugs, The patch bash42-018 to allow execute_cmd.c that is supposed to allow it to compile with out JOB_CONTROL defined has a bug in it. It is leaving the lastpipe_flag uninitialized. This is a problem because later in the module it is tested. *** ../bash-4.2-patched/execute_cmd.

VMS port - Advice wanted for not having a fork() call.

2012-06-06 Thread John E. Malmberg
The existing port of Bash for VMS claims to be 1.4.8, which as near as I can tell must be based on 1.4.7, as I do not see a 1.4.8 in the download section. What they did to work around that VMS does not have a fork() call, is to: Make a copy of several global variables and structures. S

Re: lib/sh/mktime.c VMS specific code is not needed.

2012-06-04 Thread John E. Malmberg
On 6/4/2012 8:05 AM, Chet Ramey wrote: On 6/2/12 7:51 PM, John Malmberg wrote: The lib/sh/mktime.c module has a VMS specific include of to pick up time_t. No, it doesn't. VMS systems include. I see I read it wrong. On VMS, the time_t type is defined in the module. So this VMS specific

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-29 Thread John E. Malmberg
On 5/29/2012 7:12 AM, Chet Ramey wrote: On 5/28/12 11:32 AM, John E. Malmberg wrote: https://bugzilla.redhat.com/show_bug.cgi?id=825751 bash-4.2.24-1.fc16.i686 Please take a look at http://git.savannah.gnu.org/cgit/bash.git/log/?h=direxpand and see if that behaves the way you like. Thanks

Red-Hat Bug 825751 - bash-completion fails on environment variables

2012-05-28 Thread John E. Malmberg
https://bugzilla.redhat.com/show_bug.cgi?id=825751 bash-4.2.24-1.fc16.i686 Steps to Reproduce: 1. Activate a terminal running a bash shell 2. ls $HOME/ 3. Actual results: ls \$HOME/ I get the directory get expanded result on Bash 1.4.8 (VMS special build) and on Bash 3.2.25(1)-release. Rega

obsolete vms specific code in lib/glob/ndir.h

2012-05-12 Thread John E. Malmberg
The lib/glob/ndir.h file has some VMS specific code in it. That header file is not used by VMS in building bash. Even if it where to be used, the code is out of date and would not work on current versions of VMS. I recommend removing the VMS specific code from that file. Regards, -John wb8ty

Re: [patch] jobs.c not checking HAVE_SYS_PARAM_H

2011-10-12 Thread John E. Malmberg
I posted this to the gmane.comp.shells.bash.bugs newsgroup two days ago, but have not seen any response. Are postings to there by non-subscribers not making to the mailing list? On 10/10/2011 10:44 PM, John E. Malmberg wrote: In the bash 4.2 source: jobs.c is not checking HAVE_SYS_PARAM_H

[patch] jobs.c not checking HAVE_SYS_PARAM_H

2011-10-10 Thread John E. Malmberg
In the bash 4.2 source: jobs.c is not checking HAVE_SYS_PARAM_H. This prevents it from compiling on VMS which does not supply this header. Regards, -John wb8tyw@qsl.network Personal Opinion Only $ diff -ub a/jobs.c b/jobs.c --- a/jobs.c 2011-09-26 22:28:17.0 -0500 +++ b/jobs.c

Updating Bash port on VMS

2011-09-30 Thread John E. Malmberg
Hello, I and others are working on updating the bash port on VMS the current version of Bash. As this port can not depend the pre-existence of Bash or other common tools, I will end up with a number of additional VMS specific files. This includes build scripts and various helper modules, and

a "script-relative" version of env

2011-05-27 Thread E R
Hi all, This is not a bash bug, but I am hoping the people on this list would find the question interesting... I have found it useful to have a "script-relative" version of /usr/bin/env. Whereas env determines an interpreter's location based on PATH, this version would determine the interpreter's

difference between ${1+"$@"} and "$@"?

2010-08-26 Thread E R
With bash is there any difference between the expressions ${1+"$@"} and "$@"? Is there any difference with other sh-like shells? Thanks, ER

setting a variable from a function called from PS1

2010-08-25 Thread E R
I've been trying to get a function called from PS1 to set a variable, e.g.: num=1 function xyz { ((num++)) date; echo "num: $num" } PS1="\$(xyz): " In this example, the global value of num doesn't change if it is called from PS1. However num does get incremented if xyz is called directly. Is

Grepping an array in bash, odd/buggy behavior when using shopt and '!'

2010-02-02 Thread Davey E
Perhaps I'm missing something obvious here, but I'm trying to figure out an efficient way to search a large array in bash (I'm using bash 4.1 because I needed to use associative arrays) Given an array that contains alphanumeric strings, I want to create a smaller array of those elements that matc

Regular expression match operation with character classes fails in bash 3.2

2008-06-27 Thread John E. Wulff
"; fi This does not match either (more like the line in my broken shell script) xp=310; if [[ $xp =~ "[0-9][0-9]*" ]]; then echo "$xp matched"; else echo "$xp not matched"; fi This message was generated with openeSUSE 11.0 Linux and sent with Thunderbird. Best regards - John E. Wulff

[REPOST] bad test for sys_siglist

2006-12-29 Thread Alexander E. Patrakov
./configure script, in this ifndef line, and thus is never defined) Repeat-By: ./configure (on linux with glibc) Fix: Replace SYS_SIGLIST_DECLARED with HAVE_DECL_SYS_SIGLIST in aclocal.m4, rerun autoconf I understand that _sys_siglist is

bad test for sys_siglist

2006-12-29 Thread Alexander E. Patrakov
./configure (on linux with glibc) Fix: Replace SYS_SIGLIST_DECLARED with HAVE_DECL_SYS_SIGLIST in aclocal.m4, rerun autoconf I understand that _sys_siglist is found and that on glibc systems, it is the same thing, so this bug is not very harmful. -

Why is this executed inside a subshell?

2006-11-27 Thread Com MN PG P E B Consultant 3
Consider the following program: #!/usr/local/bin/bash --norc export VAR=A function setvar { VAR=B echo X } V=$(setvar) echo $VAR When I execute it, I get as result "A", not "B", as I had expected. If setvar would be an external program, I would understand the result, as this would have to be

RE: logout from interactive subshell

2006-10-12 Thread Com MN PG P E B Consultant 3
> What about in your login (.bash_profile, etc) exporting a > variable, say > ROOT_PID=$$ and having a command/function/alias 'kill -s SIGHUP > $ROOT_PID'? This is equivalent to killing the rlogin connection, but > should clean up nicely if all you have are shells. Excellent idea! Thank you fo

RE: logout from interactive subshell

2006-10-12 Thread Com MN PG P E B Consultant 3
> >(1) rlogin to a foreign host > >(2) Invoke a subshell (for example because I'm setting a > Clearcase > > View) > >(3) Logout from the host > > > > Step (3) needs two steps: First I have to type 'exit' to leave the > > subshell, and then either 'exit' or 'logout' to leave the > log

RE: logout from interactive subshell

2006-10-12 Thread Com MN PG P E B Consultant 3
> > I can't use traps here, because I know only at "exit time", whether > > I want to logout completely, or just go up one level. > > $ call_and_exit() { "$@"; if test $? -eq 42; then exit; fi; } > $ call_and_exit cleartool ... > $ exit 42 This looks clever. Maybe one should use "exit 42" too in

RE: logout from interactive subshell

2006-10-12 Thread Com MN PG P E B Consultant 3
> >(1) rlogin to a foreign host > >(2) Invoke a subshell (for example because I'm setting a > Clearcase > > View) > > Is it a subshell or a second-level shell? (In the first case, $$ and > $PPID remain the same.) Could you kindly explain the difference? I thought it's always the same - a

RE: logout from interactive subshell

2006-10-12 Thread Com MN PG P E B Consultant 3
> >rlogin foobar > >DO SOME STUFF > >cleartool setview myview # this creates a subshell > >DO MORE STUFF > >cleartool setview yourview # now I'm two subshells deep > >DO STILL MORE STUFF > ># Now I want to exit > >exit > >exit > >logout > > > > I would like t

RE: logout from interactive subshell

2006-10-12 Thread Com MN PG P E B Consultant 3
> How about > function rlogin() {command rlogin "$@"; exit} > ? H I don't see how this could help me. Actually, your solution would EXIT the shell I came from, after the login has finished!! So I not only have to type all the "exit"s on the remote host, I would even loose my current shell

logout from interactive subshell

2006-10-12 Thread Com MN PG P E B Consultant 3
Does someone know how to deal with the following situation? Very often I do the following pattern: (1) rlogin to a foreign host (2) Invoke a subshell (for example because I'm setting a Clearcase View) (3) Logout from the host Step (3) needs two steps: First I have to type 'exit' to leav

RE: How to suppress "Terminated..." message after kill

2006-09-22 Thread Com MN PG P E B Consultant 3
> Com MN PG P E B Consultant 3 wrote: > > (PID) Terminated tail -f file >outfile > > Is there a way to suppress this message? (bash 2.05b) > > Use: > set +m > Why is monitor set for your script? That would only be typical for > interactive s

How to suppress "Terminated..." message after kill

2006-09-20 Thread Com MN PG P E B Consultant 3
My bash program basically does: tail -f file >outfile & killpid=$! ... kill $killpid >/dev/null 2>&1 ... Still I get the message (PID) Terminated tail -f file >outfile at the end of my script. Is there a way to suppress this message? (bash 2.05b) Ronald -- Ronald Fi

RE: why doesn't this error message go to the bit bucket?

2006-08-28 Thread Com MN PG P E B Consultant 3
> > $ unalias fooee 2>&1 >/dev/null > > bash: unalias: fooee: not found > > > > Why is the error message displayed here? > > Because you have redirected stderr (fd 2) to the channel connected to > stdout (fd 1) before stdout was redirected to a different channel (to > /dev/null). Of course! Stupi

why doesn't this error message go to the bit bucket?

2006-08-28 Thread Com MN PG P E B Consultant 3
$ unalias fooee 2>&1 >/dev/null bash: unalias: fooee: not found Why is the error message displayed here? Because of the redirection, I had expected that any error message resulting from the unalias command would go to /dev/null Ronald -- Ronald Fischer (phone +49-89-63676431) mailto:[EMAIL PROTE

strange segmentation violation in connection with <<< redirection

2006-08-03 Thread Com MN PG P E B Consultant 3
With bash 2.05b (unfortunately I have no access to a more recent version) under Linux, there is a strange error, which can be demonstrated with the following script - let's call it "segv": #!/bin/bash --norc schodo="" fgrep -q <<<$schodo If this script is executed, I get the following er

How to enable 'realpath'

2006-04-21 Thread Com MN PG P E B Consultant 3
I don't see how to enable the 'realpath' builtin: $ enable realpath bash: enable: realpath: not a shell builtin I'm running bash 2.05b.0(1), so realpath should be a loadable builtin here, isn't it? Ronald ___ Bug-bash mailing list Bug-bash@gnu.org h

RE: Keybinding "yank 0th arg", "delete backward argument"

2006-03-27 Thread Com MN PG P E B Consultant 3
> > (1) yank 0th arg, similar to yank-last-arg, but copies the > command part > > of the previous line > > into the current buffer. Example: The previous line was > > > > /usr/local/bin/perl myprog.pl > > > > then yank-0th-arg should insert /usr/local/bin/perl into the buffer. > > M-0 M-. (digi

RE: Backquote Mystery

2006-03-23 Thread Com MN PG P E B Consultant 3
> Try echo "$e". Then read about Word Splitting in the Bash manual. Good point. Since no word splitting occurs within "$e", it is expanded to a string containing newlines: $ echo $e # Expansion without quotes -> word splitting x sub: f $ echo "$e"

Backquote Mystery

2006-03-23 Thread Com MN PG P E B Consultant 3
While hunting a bug in my script, I stumbled over an effect involving the usage of backquote and grep, which completely puzzles me. To reproduce the effect, execute first the following four commands, which create a small directory tree in your working directory and set the bash variable &#

Keybinding "yank 0th arg", "delete backward argument"

2006-03-23 Thread Com MN PG P E B Consultant 3
I would find the following two functions useful in bash command line editing; is it possible to simulate them somehow with the current bash version, or would this have to be a new feature in a future version of bash? (1) yank 0th arg, similar to yank-last-arg, but copies the command part of the pr

bash - confusing the user - a headsup/FYI/whatever

2006-01-01 Thread Hannu E K Nevalainen
own Cygwin Machine Type: i686-pc-cygwin Bash Version: 3.1 Patch Level: 1 Release Status: release Description: Repeat-By: Fix: Read below. Hannu E K Nevalainen wrote: > New year greetings from Sweden! > > Below you find an issue that I have no intention/wish to discuss > further, I

bash - confusing the user - a headsup/FYI/whatever

2005-12-31 Thread Hannu E K Nevalainen
New year greetings from Sweden! Below you find an issue that I have no intention/wish to discuss further, I just wish to bring it forth to make it get a "known issue" status. Reply-to set to bug-bash Expected result: $ echo "a b c d e f g" | \ ( while read first second

RE: HERE document mystery

2005-12-16 Thread Com MN PG P E B Consultant 3
> "Com MN PG P E B Consultant 3" > <[EMAIL PROTECTED]> wrote: > > echo THIS DOES NOT WORK > > foo=$(cat exp_test < > V=1234 > > abcd > > BAD > > 0. Since you passed a file name to cat, it will ignore stdin. > 1. Since the here-docume

HERE document mystery

2005-12-15 Thread Com MN PG P E B Consultant 3
Is this a bug, or just my misunderstanding about the scope of the "HERE" operator (<<)? Consider the following program: echo THIS WORKS cat

RE: show-all-if-ambiguous broken?

2005-11-28 Thread Com MN PG P E B Consultant 3
> Did `echo $INPUTRC' display anything? THAT WAS IT! THAT WAS IT! THANK YOU SO MUCH! This variable was set (maybe by some malevolent sysadmin) to /etc/inputrc. It still puzzles me why bash, despite of this, was able to see the keybindings I had defined in *my* ~/.inputrc; maybe readline always t

RE: show-all-if-ambiguous broken?

2005-11-24 Thread Com MN PG P E B Consultant 3
> 1. Are you sure your inputrc is being read? Yes, I had verified this in two ways: First I have changed some of the character bindings in my .inputrc, and then I have typed Ctrl-X Crtl-R on the shell prompt. The effect was that my character binding had changed, but the completion behaviour was

RE: show-all-if-ambiguous broken?

2005-11-24 Thread Com MN PG P E B Consultant 3
> > In my .inputrc I have: > > > > set print-completions-horizontally on > > set show-all-if-ambiguous on > I cannot reproduce it. Do you use the programmable completion > package? I rarely use it (and can't check it right now). I don't know which completion package is installed (how can I

show-all-if-ambiguous broken?

2005-11-22 Thread Com MN PG P E B Consultant 3
In my .inputrc I have: set print-completions-horizontally on set show-all-if-ambiguous on Despite of this, I have to type TWICE to get the completions listed. Is there a bug in the completion system, or do I miss yet another option? I'm using bash 2.05b (unfortunately, upgrading to 3.x is n

(no subject)

2005-07-12 Thread e
标准展位 :6800元/个 申请简易   “中博会”实行各交易团定额分配、先到先得的原则,首批接受资助的企业按6800 RMB/标准展位收费(3m��3m)于5月30日结束.请各有关企业抓紧时间,及时传回申请表.请传真至:020-81054878    或

(None)

2005-03-06 Thread Comercial Tecnobio e Qu�mica Ltda
Title: Nova pagina 1

未承諾広告※ 冬の最新ご融資情報

2005-02-18 Thread e-nextモーション
$B"'%"%s%5!<%+!<%I%U%j!<%m!<%s35MW(B $B!!(B $BM;;q6b3[(B 1$BK|1_!A(B100$BK|1_$^$?$OG/<}$N(B10$B!s(B $B!!(B $BJV:Q4|F|(B 5$BG/Kh$N<+F099?7(B $B!!(B $BJV:QJ}K!(B $B856b<+M3JV:Q(B $B!!(B $B!!

未承諾広告※ 冬の最新ご融資情報

2005-02-17 Thread e-nextモーション
$B"'%"%s%5!<%+!<%I%U%j!<%m!<%s35MW(B $B!!(B $BM;;q6b3[(B 1$BK|1_!A(B100$BK|1_$^$?$OG/<}$N(B10$B!s(B $B!!(B $BJV:Q4|F|(B 5$BG/Kh$N<+F099?7(B $B!!(B $BJV:QJ}K!(B $B856b<+M3JV:Q(B $B!!(B $B!!