<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/util-linux.git/bash-completion/lslocks, branch master</title>
<subtitle>git.kernel.org: pub/scm/utils/util-linux/util-linux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/'/>
<entry>
<title>lslocks: add --output-all option</title>
<updated>2018-05-03T18:56:20+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2018-04-23T21:02:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=25d3c405343f20db5dfcb61334102bcfadc1d5bf'/>
<id>25d3c405343f20db5dfcb61334102bcfadc1d5bf</id>
<content type='text'>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: make completions to work when bash set -u is in use</title>
<updated>2017-07-15T21:05:42+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2017-06-30T22:13:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=abbcec4fc9c8d7fb835b4eafd1bc9d82acbf0056'/>
<id>abbcec4fc9c8d7fb835b4eafd1bc9d82acbf0056</id>
<content type='text'>
User who want to avoid refering to none-existing variables got earlier the
following error.

$ set -u
$ findmnt --output &lt;tab&gt;bash: OUTPUT: unbound variable

Here is short explanation of this setting.

$ help set
 -u  Treat unset variables as an error when substituting.

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
User who want to avoid refering to none-existing variables got earlier the
following error.

$ set -u
$ findmnt --output &lt;tab&gt;bash: OUTPUT: unbound variable

Here is short explanation of this setting.

$ help set
 -u  Treat unset variables as an error when substituting.

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: update misc-utils</title>
<updated>2017-04-17T17:18:10+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2017-04-11T10:02:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=c6b1d511d21cc5b0c760935e57559d4ec3a44bf8'/>
<id>c6b1d511d21cc5b0c760935e57559d4ec3a44bf8</id>
<content type='text'>
fincore:

	Add RES column to --output completions.

	Commit: e4e8b57be2b63fed82647e4d5efd0e0eaf36b19e

findfs:

	Commit: 940817b736bceccca9be6b9b73e4dd7da0d89142

logger:

	Add --socket-errors [1] and --tcp [2] options.

	Commit [1]: d77dc29e6e18d39b1845282e8039ac7117f3bd1c
	Commit [2]: 68265d070d3041d16ab074ba25c610d6ef6c842e

lsblk:

	Add HOTPLUG [1], SERIAL [2], and SUBSYSTEMS [3] output fields.  Add
	--json [4], --output-all [5], and --paths [6] options.

	Commit [1]: 483987c275e461f4118a89d3be013698845d702b
	Commit [2]: 460c7afb79075bd5b39e7d4bc153aa41c939bab3
	Commit [3]: 7f14ee1b551e839a4ae081c8d2b7633ca40a5823
	Commit [4]: 4a102a4871fdb415f4de5af9ffb7a2fb8926b5d1
	Commit [5]: 1b4d2a4a4aa7df52033d293f26cd4fa79f95578d
	Commit [6]: c7e76cd145b0c40e1d346203f3222f5937146939

lslocks:

	Add --noinaccessible option.  Remove file argument completion, this
	command does not use that sort of command line input.

	Commit: f29bc6e1cc4ed9f76bded543c6ab393f674ec3ed

mcookie:

	Add --max-size option.

	Commit: f7bac5731bf559216aa2f0e8be1d7f477e7cf41a

wipefs:

	Add --backup option.

	Commit: 7e658c15a2c1fc5092a790afbe7d9d395d04b098

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fincore:

	Add RES column to --output completions.

	Commit: e4e8b57be2b63fed82647e4d5efd0e0eaf36b19e

findfs:

	Commit: 940817b736bceccca9be6b9b73e4dd7da0d89142

logger:

	Add --socket-errors [1] and --tcp [2] options.

	Commit [1]: d77dc29e6e18d39b1845282e8039ac7117f3bd1c
	Commit [2]: 68265d070d3041d16ab074ba25c610d6ef6c842e

lsblk:

	Add HOTPLUG [1], SERIAL [2], and SUBSYSTEMS [3] output fields.  Add
	--json [4], --output-all [5], and --paths [6] options.

	Commit [1]: 483987c275e461f4118a89d3be013698845d702b
	Commit [2]: 460c7afb79075bd5b39e7d4bc153aa41c939bab3
	Commit [3]: 7f14ee1b551e839a4ae081c8d2b7633ca40a5823
	Commit [4]: 4a102a4871fdb415f4de5af9ffb7a2fb8926b5d1
	Commit [5]: 1b4d2a4a4aa7df52033d293f26cd4fa79f95578d
	Commit [6]: c7e76cd145b0c40e1d346203f3222f5937146939

lslocks:

	Add --noinaccessible option.  Remove file argument completion, this
	command does not use that sort of command line input.

	Commit: f29bc6e1cc4ed9f76bded543c6ab393f674ec3ed

mcookie:

	Add --max-size option.

	Commit: f7bac5731bf559216aa2f0e8be1d7f477e7cf41a

wipefs:

	Add --backup option.

	Commit: 7e658c15a2c1fc5092a790afbe7d9d395d04b098

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: update few options changed since v2.26</title>
<updated>2015-08-03T10:35:18+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2015-08-02T20:24:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=24bdce6ea844fd11f27808aed165e3d7dbb62d5c'/>
<id>24bdce6ea844fd11f27808aed165e3d7dbb62d5c</id>
<content type='text'>
Attempt to find and update all changes to command line options that has
not been reflected in bash-completion files in between versions v2.26 to
v2.27-rc1.

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Attempt to find and update all changes to command line options that has
not been reflected in bash-completion files in between versions v2.26 to
v2.27-rc1.

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: handle comma-separated options</title>
<updated>2015-06-08T10:09:48+00:00</updated>
<author>
<name>Boris Egorov</name>
<email>egorov@linux.com</email>
</author>
<published>2015-06-02T17:59:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=b5b80e5a6d85a53c89e8ef1ddb76ae985a1c7f65'/>
<id>b5b80e5a6d85a53c89e8ef1ddb76ae985a1c7f65</id>
<content type='text'>
This solution can become messy when you have too many options listed,
because it repeats all of them. For example, after invoking completion
with this input:

    $ partx --output END,SECTORS,SCHEME,START,

You got these completions:

    END,SECTORS,SCHEME,START,FLAGS,  END,SECTORS,SCHEME,START,NR,
    END,SECTORS,SCHEME,START,TYPE,
    END,SECTORS,SCHEME,START,NAME,   END,SECTORS,SCHEME,START,SIZE,
    END,SECTORS,SCHEME,START,UUID,

Nevertheless, it works even with numbers (listed options properly
excluded from completion). Try to invoke completion after
'chcpu --disable ' or 'lsblk --exclude ' to see it in action.

Few issues remained:

    * completion interrupts after encountering ':' in listed option,
    like in 'MAJ:MIN' in lsblk, losetup.
    * lscpu completion is broken: it inserts space after '--extended',
    but lscpu assumes there is no space after this option. It also
    doesn't complete '--parse' option.
    * some completion options are outdated (for example, lscpu MMHZ). We
    need to sync them with code. Fix for lscpu follows.

Signed-off-by: Boris Egorov &lt;egorov@linux.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This solution can become messy when you have too many options listed,
because it repeats all of them. For example, after invoking completion
with this input:

    $ partx --output END,SECTORS,SCHEME,START,

You got these completions:

    END,SECTORS,SCHEME,START,FLAGS,  END,SECTORS,SCHEME,START,NR,
    END,SECTORS,SCHEME,START,TYPE,
    END,SECTORS,SCHEME,START,NAME,   END,SECTORS,SCHEME,START,SIZE,
    END,SECTORS,SCHEME,START,UUID,

Nevertheless, it works even with numbers (listed options properly
excluded from completion). Try to invoke completion after
'chcpu --disable ' or 'lsblk --exclude ' to see it in action.

Few issues remained:

    * completion interrupts after encountering ':' in listed option,
    like in 'MAJ:MIN' in lsblk, losetup.
    * lscpu completion is broken: it inserts space after '--extended',
    but lscpu assumes there is no space after this option. It also
    doesn't complete '--parse' option.
    * some completion options are outdated (for example, lscpu MMHZ). We
    need to sync them with code. Fix for lscpu follows.

Signed-off-by: Boris Egorov &lt;egorov@linux.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: use '\n' as IFS when ask for filenames</title>
<updated>2013-09-30T13:49:00+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2013-09-30T13:49:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=ce3e6b15e2c4478b2df9a7016c168b16325abfb0'/>
<id>ce3e6b15e2c4478b2df9a7016c168b16325abfb0</id>
<content type='text'>
The bash completion for more(1) treats the space-separated pieces of
filenames as different files.

	$ touch foo\ bar
	$ more foo&lt;TAB&gt;
	bar foo

Reported-by: Ángel González &lt;ingenit@zoho.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The bash completion for more(1) treats the space-separated pieces of
filenames as different files.

	$ touch foo\ bar
	$ more foo&lt;TAB&gt;
	bar foo

Reported-by: Ángel González &lt;ingenit@zoho.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: Don't offer short options where corresponding long one exists.</title>
<updated>2013-04-08T15:06:56+00:00</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2013-04-07T08:12:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=0d5b9b8ab109200311ffb211535a999b57a4673e'/>
<id>0d5b9b8ab109200311ffb211535a999b57a4673e</id>
<content type='text'>
Users who know the short options can just hit the short option instead
of tab, and it's not likely that it would be helpful to present a list
of single character options to users who don't know them, doing so
just unnecessarily trashes the list of suggestions.

Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Users who know the short options can just hit the short option instead
of tab, and it's not likely that it would be helpful to present a list
of single character options to users who don't know them, doing so
just unnecessarily trashes the list of suggestions.

Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: Don't offer any more completions after help or version.</title>
<updated>2013-04-08T15:06:52+00:00</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2013-04-07T08:12:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57'/>
<id>d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57</id>
<content type='text'>
Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Ville Skyttä &lt;ville.skytta@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: rename shell-completion -&gt; bash-completion</title>
<updated>2013-04-05T12:58:07+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2013-04-05T12:58:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=20da58084a68b118b15fa01228192463b61fa28f'/>
<id>20da58084a68b118b15fa01228192463b61fa28f</id>
<content type='text'>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
