Special Sauce wrote:
From: anton
To: bug-bash@gnu.org
Subject: Cursor starts inside prompt
I just noticed this issue too. It seems it was fine under gnu screen, but not
with plain xterm or gnome-terminal. Upgrading to the latest patch version
4.0.17 fixed it.
- Ian Kelling
Bill Gradwohl wrote:
> On Fri, 2009-04-24 at 13:50 -0400, Greg Wooledge wrote:
>> parameter=${parameter//[[:space:]]/}
> I never saw that before. I checked my man bash for version bash-3.2-30
> from Fedora 10 and there is no mention of it. Thanks.
Look at the description of character classes in th
Bill Gradwohl wrote:
> On Fri, 2009-04-24 at 13:50 -0400, Greg Wooledge wrote:
>> parameter=${paramter//[ $'\t']/}
>
> I experimented a bit. See the attachment.
>
>
> The first 3 dumpit outputs are expected. The next 2 are not. The last 2
> show what I would have expected from the previous 2.
I
Bill Gradwohl writes:
> I tried it with and without and it doesn't appear to make a difference.
Try adding spaces or other special characters to the value of
$makeTempFileName. The variable should be expanded during the rescan
done by eval, not before.
Andreas.
--
Andreas Schwab, sch...@linu
Bill Gradwohl writes:
> The $' inside the [] is being used up but not in any way I expected.
> Clearly, $'\t' is not representing a tab character, nor is it just using
> the $ as a character in its own right. What is it doing?
Since $parameter does not contain any tab characters there is no tab
On Fri, 2009-04-24 at 19:54 +0200, Andreas Schwab wrote:
> Use eval.
>
>eval $x=\${makeTempFileName}
After you mentioned it, I remembered reading about eval a long time ago
and couldn't understand what it was good for. Now I know. Thank You.
Why the backslash before the $ ?
I tried it with
On Fri, 2009-04-24 at 13:50 -0400, Greg Wooledge wrote:
> parameter=${paramter//[ $'\t']/}
I experimented a bit. See the attachment.
The first 3 dumpit outputs are expected. The next 2 are not. The last 2
show what I would have expected from the previous 2.
The $' inside the [] is being used up
On Fri, 2009-04-24 at 13:50 -0400, Greg Wooledge wrote:
> parameter=${parameter//[[:space:]]/}
I never saw that before. I checked my man bash for version bash-3.2-30
from Fedora 10 and there is no mention of it. Thanks.
>
> or
>
> parameter=${paramter//[ $'\t']/}
I tried all the variations except
This fixes a typo in the bash manual page.
Andreas.
--- bash-4.0/doc/bash.1.~1~ 2009-02-18 21:13:56.0 +0100
+++ bash-4.0/doc/bash.1 2009-04-24 22:12:55.0 +0200
@@ -2004,7 +2004,7 @@ prompt.
.TP
.B PROMPT_DIRTRIM
If set to a number greater than zero, the value is used as the
Greg Wooledge wrote:
> From an older bash(1) manual:
>
>Words of the form $'string' are treated specially. The word expands to
>string, with backslash-escaped characters replaced as specifed by the
>ANSI C standard.
>
> Bash 4 manual:
>
> Words of the form $st
Bill Gradwohl writes:
> My real world need is to assign temporary file names to named variables.
>
> makeTempFileName=''
> for x in 'TEMPLOG' 'TEMPFILELEFT' 'TEMPFILERIGHT'; do
>makeTemp "${x}" # function that does a lot of processing and
> # sets makeTempFileName equal
On Fri, Apr 24, 2009 at 11:49:43AM -0600, Bill Gradwohl wrote:
> This is a trivial example, but gives you the idea.
> for x in 'VAR_A' 'VAR_B' 'VAR_C'; do
># What I'd like to say is
>!x="hello"
> done
In bash 4, you can use associative arrays, which gives you what you
really want.
Apart
On Fri, Apr 24, 2009 at 11:32:09AM -0600, Bill Gradwohl wrote:
> What I want to do is remove all the space and tab characters.
parameter=${parameter//[[:space:]]/}
or
parameter=${paramter//[ $'\t']/}
>From an older bash(1) manual:
Words of the form $'string' are treated specially. The
It appears that indirection can only be used as an rvalue. Is there any
way to use indirection as an lvalue?
This is a trivial example, but gives you the idea.
for x in 'VAR_A' 'VAR_B' 'VAR_C'; do
# What I'd like to say is
!x="hello"
done
resulting in 3 variables getting assigned a value,
I know that
parameter="${parameter//[0123456789]}"
will remove all numerics
What I want to do is remove all the space and tab characters.
So far I've only been able to do it as follows:
parameter="${parameter// }"#:# Convert any spaces to null
parameter="${parameter//'\t'}"
On Thu, Apr 23, 2009 at 02:14:24PM -0600, Justin wrote:
> I am using a command line ssh tool called qtssh on windows to connect to
> a redhat server. qtssh is a command line ssh tool [...]
> 'When bash is started non-interactively, to run a shell
> script, for example, it looks for the var
16 matches
Mail list logo