Le 9 mai 2011 à 20:21, Greg Wooledge a écrit :
> On Mon, May 09, 2011 at 04:46:14PM +0200, Thomas De Contes wrote:
>> Description:
>>
>> 1
>> when i do
>> PS1=" $PS1"
>> then I have problems since there is some accents in my command lines :
>
> What is the value of PS1 before you prepend ampe
2011/5/9 Mårten Wikström :
> 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'
On Mon, May 09, 2011 at 04:46:14PM +0200, Thomas De Contes wrote:
> Description:
>
> 1
> when i do
> PS1=" $PS1"
> then I have problems since there is some accents in my command lines :
What is the value of PS1 before you prepend ampersand-hash-space to it?
What does the ampersand-hash-space h
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: darwin10.7.0
Compiler: /usr/bin/gcc-4.2
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='darwin10.7.0' -DCONF_MACHTYPE='i386-apple-darwin10.7.0'
-DCONF_VENDOR='apple'
-DLOCALEDIR='/Us
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
> For straight debugging output, it's probably ok. You might have to
> play with it a little if you want to make it into something you can
> eval from a command substitution to copy an array.
Just another thought,
declare -p aa
is nice for debugging arrays.
help declare
...
-pdisplay t