Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2014 14:51:20 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Regression in shells/bash (bash-4.3.0) when selecting command after reverse incremental search, the command line isn't repainted as done in previous versions
Message-ID:  <alpine.BSF.2.00.1403071428130.720@mail.fig.ol.no>

next in thread | raw e-mail | index | archive | help
Hi,

Has anyone else noticed this regression in shells/bash 
(bash-4.3.0(1))?

Here's one example:

1. Type this command and hit the enter key:

bash --version

2. Hit C-r and type the letter v.

3. The command line changes to:

(reverse-i-search)`v': bash --version

4. The cursor/point is placed on the letter v in --version.

5. Hit the enter key to execute the command.

6. The command line changes into:

trond@enterprise:~>bash --

7. The output is as expected though:

GNU bash, version 4.3.0(1)-release (amd64-portbld-freebsd9.2)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>;

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

8. Hit C-r again and type the letter v.

9. The command line changes again into:

(reverse-i-search)`v': bash --version

10. The cursor/point is still on the letter v.

11. This time hit C-e to place the cursor/point at the end of the 
command line.

12. The command line changes into:

trond@enterprise:~>bash --version

13. This time the command line appears in its entirety.

14. Hit the enter key to execute the command.

15. The output is unchanged:

GNU bash, version 4.3.0(1)-release (amd64-portbld-freebsd9.2)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>;


This "regression" can be due to the contents in my .inputrc file or 
some of the other files read by bash, but I'm inclined to believe the 
bug is related to bash's use of libreadline and/or libncurses.

For sake of argument, here's my .inputrc (the comments are in 
Norwegian, sorry):

# Felles variabler
set editing-style emacs
set bell-style none

# Felles tastebindinger
del: delete-char			# Delete
"\e[H": beginning-of-line		# Home (syscons)
"\e[F": end-of-line			# End (syscons)
"\e[I": backward-word			# PageUp (syscons)
"\e[G": forward-word			# PageDown (syscons)
"\C-x\C-f": dump-functions		# C-x,C-f
"\C-x\C-v": dump-variables		# C-x,C-v
"\C-x\C-m": dump-macros			# C-x,C-m
"\C-a": beginning-of-line		# C-a
"\C-e": end-of-line			# C-e

$if term=xterm
"\e[3~": delete-char			# Delete (xterm)
"\e[7~": beginning-of-line		# Home (xterm)
"\e[8~": end-of-line			# End (xterm)
"\e[5~": backward-word			# PageUp (xterm)
"\e[6~": forward-word			# PageDown (xterm)
$endif

$if term=vt100
"\e[2~": beginning-of-line		# Home (vt100)
"\e[5~": end-of-line			# End (vt100)
"\e[3~": backward-word			# PageUp (vt100)
"\e[6~": forward-word			# PageDown (vt100)
$endif

$if term=screen
"\e[3~": delete-char			# Delete (screen)
"\e[H": beginning-of-line		# Home (screen)
"\e[F": end-of-line			# End (screen)
"\e[I": backward-word			# PageUp (screen)
"\e[G": forward-word			# PageDown (screen)
"\e[1~": beginning-of-line		# Home (screen)
"\e[4~": end-of-line			# End (screen)
"\e[5~": backward-word			# PageUp (screen)
"\e[6~": forward-word			# PageDown (screen)
$endif

$if term=sun
"\e[249z": delete-char			# Delete (sun)
"\e[214z": beginning-of-line		# Home (sun)
"\e[220z": end-of-line			# End (sun)
"\e[216z": backward-word		# PageUp (sun)
"\e[222z": forward-word			# PageDown (sun)
$endif

# spesialvalg for bash
$if BASH
set comment-begin #
#set completion-ignore-case on
set completion-query-items 999999999
set horizontal-scroll-mode on
set mark-directories on
#set mark-modified-lines on
set print-completions-horizontally on
set show-all-if-ambiguous on
set visible-stats on

"\e[P": "ls\r"				# F4 (syscons)
"\e[Q": "la\r"				# F5 (syscons)
"\e[R": "ll\r"				# F6 (syscons)
"\e[b": "startx\r"			# Shift-F4 (syscons)
"\e[c": "mc\r"				# Shift-F5 (syscons)
"\e[V": "x\r"				# F10 (syscons)
"\C-x2": "25l\r"			# C-x 2
"\C-x5": "50l\r"			# C-x 5
"\C-x6": "60l\r"			# C-x 6
"\C-x\C-x": "lock -n -p\r"		# C-x C-x

$if term=xterm
"\e[15~": "mc\r"			# (Shift-)F5 (xterm)
"\e[17~": "ll\r"			# (Shift-)F6 (xterm)
"\e[21~": "x\r"				# F10 (xterm)
$endif

$if term=vt100
"\e[14~": "ls\r"			# F4 (vt100)
"\e[15~": "la\r"			# F5 (vt100)
"\e[17~": "ll\r"			# F6 (vt100)
"\e[28~": "mc\r"			# Shift-F5 (vt100)
"\e[21~": "x\r"				# F10 (vt100)
$endif

$if term=screen
"\e[21~": "x\r"				# F10 (screen)
"\e[h": "x\r"				# F10 (screen)
$endif

$if term=sun
"\e[233z": "x\r"			# F10 (sun)
$endif
$endif

# Spesialvalg for R
$if R
set comment-begin #
set horizontal-scroll-mode on
$endif

# Spesialvalg for psql
$if PSQL
set comment-begin --
set horizontal-scroll-mode on
$endif


-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@FreeBSD.ORG  Fri Mar  7 14:18:28 2014
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id EFC81F6F;
 Fri,  7 Mar 2014 14:18:28 +0000 (UTC)
Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com
 [24.240.198.187])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 9FE723C7;
 Fri,  7 Mar 2014 14:18:27 +0000 (UTC)
Received: from www.dweimer.net (webmail [192.168.5.2])
 by webmail.dweimer.net (8.14.7/8.14.7) with ESMTP id s27EIKGS079494
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Fri, 7 Mar 2014 08:18:21 -0600 (CST)
 (envelope-from dweimer@dweimer.net)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Fri, 07 Mar 2014 08:18:20 -0600
From: dweimer <dweimer@dweimer.net>
To: Matthew Seaman <m.seaman@infracaninophile.co.uk>
Subject: Re: FreeBSD 10 RELEASE amd64 how to install on single drive with
 encrypted ZFS =?UTF-8?Q?root=3F?=
Organization: dweimer.net
Mail-Reply-To: dweimer@dweimer.net
In-Reply-To: <5319913D.4040207@infracaninophile.co.uk>
References: <53197EF6.4070902@holgerdanske.com>
 <5319913D.4040207@infracaninophile.co.uk>
Message-ID: <10334f5b74b05d9445d071bd08f73a24@dweimer.net>
X-Sender: dweimer@dweimer.net
User-Agent: Roundcube Webmail/1.0-rc
Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: dweimer@dweimer.net
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Mar 2014 14:18:29 -0000

On 03/07/2014 3:28 am, Matthew Seaman wrote:
> On 03/07/14 08:10, David Christensen wrote:
>> The FreeBSD manual covers 9 and the wiki "Root on ZFS" article covers 
>> 8.
>> 
>> STFW I've found several things for 9, but no direct hits for 10 with
>> encrypted ZFS root.  (There is a Flash video that might cover it, but 
>> I
>> don't do Adobe.)
> 
> The 10.0 installer does ZFS natively, which is why you can't find any
> instructions on how to set up ZFS manually on that platform.
> 
> However, to set up an encrypted root, you'll need to set up the
> encrypted partition with geli and then set up your ZFSes on top of 
> that.
> Which is basically a manual job.
> 
> You can follow the instructions here:
> 
>    https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE
> 
> except that after item (7) -- gnop -- you'll need to insert creating
> your encrypted partitions and then modify the subsequent bits to refer
> to the /dev/gpt/foo.eli devices you create.  As far as ZFS goes, the
> sequence is essentially the same for 9.0 as for 10.0 except that
> wherever it says to use lzjb, you should substitute lz4.
> 
> 	Cheers,
> 
> 	Matthew

Actually, when using the 10 installer after you select ZFS install, you 
get an options screen that allows you to configure it to use encryption.

Full options configurable are as follows:
Pool Type/Disks
Poll Name
Force 4k Sectors
Encrypt Disks
Partition Scheme
Swap Size

I did a test install in vmware with the encryption options with no 
problems.  However I did end up choosing the manual method when I did my 
laptop setup for one simple reason.  I wanted to understand it fully in 
case I ran into a boot issue down the road and needed to go through a 
recovery process, and couldn't think of a better to know I understood it 
better than manually doing the setup.

-- 
Thanks,
    Dean E. Weimer
    http://www.dweimer.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1403071428130.720>