Henryk Fuks wrote:
> Hi all,
>
> I found at https://sourceforge.net/projects/bash-gchistory/
> a patch which allows to access shell command history across
> multiple open instances of the shell. It seems that the patch
> is no longer maintained, and it requires bash 3.00.16.
>
> Are there any pla
Yes, that's expected. If a command substitution undergoes word splitting, the
output will be split on whitespace. If it doesn't (you use the "$(...)" form,
with quotes around), the output forms a single word, which will result in 'a b
c' as the single value of $k.
This will do what you want:
$
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: /usr/bin/gcc-4.1
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/opt/bash--3.2.17/sh
Hi all,
I found at https://sourceforge.net/projects/bash-gchistory/
a patch which allows to access shell command history across
multiple open instances of the shell. It seems that the patch
is no longer maintained, and it requires bash 3.00.16.
Are there any plans to incorporate this patch into o
Hi,
Is this behavior considered normal?
[EMAIL PROTECTED] ~]$ for k in "a b" c ; do echo $k ; done
a b
c
[EMAIL PROTECTED] ~]$ echo \"a b\" c
"a b" c
[EMAIL PROTECTED] ~]$ for k in `echo \"a b\" c` ; do echo $k ; done
"a
b"
c
[EMAIL PROTECTED] ~]$ bash --version
GNU bash, version 3.2.17(1)-relea