support for new status=progress setting in dd version 8.24+ // fixed bug #200

parent 89667228
......@@ -40,6 +40,8 @@ between. For more detailed information see the or git log.
environment, including BashStyle-NG and Bash Programmable
Completion.
- #200 (dd_opts): ensure setting DD_OPTS is properly done.
* Configuration File Changes
- Additionally to factory and vendor (/etc/bs-ng_vendor.ini)
configuration BashStyle-NG now also checks for user backup
......@@ -126,6 +128,11 @@ between. For more detailed information see the or git log.
- xmltagdelete: delete tags from xml files, see 'xmltagdelete
--help'
* New Settings
- Added option to display progressbar for 'dd', requires version
8.24 or newer.
* Documentation
- Add texinfo documentation describing all features of
......@@ -149,6 +156,9 @@ between. For more detailed information see the or git log.
* Configure
- 4.3.7
+ code review
- 4.3.6
+ add '--docdir' switch back
+ add '--mandir' switch
......@@ -170,6 +180,9 @@ between. For more detailed information see the or git log.
* Make
- 1.0.9
+ code review
- 1.0.8
+ compress manpages upon './make build'
+ install info and html documentation upon './make install'
......
ini_version = 22
ini_version = 23
[Style]
use_bashstyle = False
......@@ -70,7 +70,8 @@ lscd_opts = --group-directories-first -CF --color
customcd_mkdir = False
use_treecd = False
treecd_opts = ""
dd_noerror = True
dd_noerror = False
dd_progress = True
restore_directory = False
debug_verbose = False
user_birthday = ""
......
ini_version = 22
ini_version = 23
[Style]
use_bashstyle = True
......@@ -71,6 +71,7 @@ customcd_mkdir = False
use_treecd = False
treecd_opts = ""
dd_noerror = True
dd_progress = True
restore_directory = True
debug_verbose = False
user_birthday = ""
......
......@@ -39,6 +39,8 @@ if no user ini exists
@item #199 (reload): fixup reload to properly restore the complete environment,
including BashStyle-NG and Bash Programmable Completion.
@item #200 (dd_opts): ensure setting DD_OPTS is properly done.
@end itemize
@item Configuration File Changes
......@@ -126,6 +128,12 @@ down Bash a bit if you have a huge history.
@item xmltagdelete: delete tags from xml files, see @code{xmltagdelete --help}
@end itemize
@item New Settings
@itemize @minus
@item Added option to display progressbar for @code{dd}, requires version 8.24 or newer.
@end itemize
@item Documentation
@itemize @minus
......
......@@ -59,7 +59,16 @@ if [[ $(ini_get colored_grep) == True && ${enable_colors} == True ]]; then
else dbg_msg $"BashStyle-NG Setting:" $"Colored grep" $"Off"
fi
[[ $(ini_get dd_noerror) == True ]] && export DD_OPTS="conv=noerror"
[[ $(ini_get dd_noerror) == True ]] && export DD_OPTS="${DD_OPTS} conv=noerror"
# status=progress is new in dd/coreutils 8.24
[[ $(ini_get dd_progress) == True && $(gawk '/^dd/{gsub("\\.","") ; print $3}' <(dd --version)) -ge 824 ]] && export DD_OPTS="${DD_OPTS} status=progress"
__dd () {
dd ${DD_OPTS} "${@}"
}
alias dd=__dd
[[ $(ini_get use_treecd) == True ]] && dbg_log alias cd=treecd
......
......@@ -3048,21 +3048,6 @@
<property name="top_attach">10</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="debug_verbose">
<property name="label" translatable="yes">Verbose output on start</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">10</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="advanced.label.welcome">
<property name="visible">True</property>
......@@ -3282,7 +3267,34 @@
</packing>
</child>
<child>
<placeholder/>
<object class="GtkCheckButton" id="debug_verbose">
<property name="label" translatable="yes">Verbose output on start</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">13</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="dd_progress">
<property name="label" translatable="yes">Let 'dd' show progressbar</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">10</property>
</packing>
</child>
<child>
<placeholder/>
......
......@@ -128,6 +128,7 @@ class BashStyleNG(object):
WidgetHandler.InitWidget("treecd_options", "Advanced", "treecd_opts", "text", None)
WidgetHandler.InitWidget("birthday", "Advanced", "user_birthday", "text", None)
WidgetHandler.InitWidget("dd_noerror", "Advanced", "dd_noerror", "bool", None)
WidgetHandler.InitWidget("dd_progress", "Advanced", "dd_progress", "bool", None)
WidgetHandler.InitWidget("restore_pwd", "Advanced", "restore_directory", "bool", None)
WidgetHandler.InitWidget("debug_verbose", "Advanced", "debug_verbose", "bool", None)
WidgetHandler.InitWidget("globignore", "Advanced", "glob_ignore", "text", None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment