<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/util-linux.git/bash-completion/zramctl, 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>zramctl: add --output-all option</title>
<updated>2018-05-03T18:56:21+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2018-04-24T21:18:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=2e7ccec7bbad60fd01fb7ebed1e9b6373bd6d4cf'/>
<id>2e7ccec7bbad60fd01fb7ebed1e9b6373bd6d4cf</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: update zramctl algorithms list</title>
<updated>2018-03-02T08:52:23+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2018-02-18T20:22:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=c50ad32410235c209cb6e0c0cb7d7926a246a4af'/>
<id>c50ad32410235c209cb6e0c0cb7d7926a246a4af</id>
<content type='text'>
Reference: a3612b81fe0c172bc4fe7e2cf468f195bd785222.
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reference: a3612b81fe0c172bc4fe7e2cf468f195bd785222.
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 sys-utils</title>
<updated>2017-04-17T17:26:37+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2017-04-11T18:02:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=d092911bcda64f4bad038ca2aa874c34a7737d47'/>
<id>d092911bcda64f4bad038ca2aa874c34a7737d47</id>
<content type='text'>
blkdiscard:

	Add --step [1] and --zeroout [2] options.

	Commit [1]: c472a7e35ae40652bdcf66c08a23bd50d48d1884
	Commit [2]: 7154cc892688f3c58cbbcdc2055f2635c1d0ef5b

chmem:

	Commit: 30e1ea8ba1984488fdb16506ebafe4dc23280e5a

dmesg:

	Add --time-format.

	Commit: babf605d2ca969a434f2f14579ddf44252adff4f

fallocate:

	Add --insert-range [1], --collapse-range [2], --zero-range [3], and
	--posix [4] options.  Also make the options to be in same order as
	usage() output.

	Commit [1]: b439065634e693dda385a6e5269e1d9258d6d471
	Commit [2]: 83cc932d7412cb9d23bf9f06a9a54c8566e1a788
	Commit [3]: 1fd4f609ee65be0f376ed28322fc3593026d39e4
	Commit [4]: 833f9a7aae713278eec5f85266597482f18c7370
	Command [5]: fallocate --help | awk '/--/ {print "\t\t\t\t" $2}'

flock:

	Add --no-fork option.

	Commit: 703251401cb11ee5d00a6b8f8bd9dc80c160f476

hwclock:

	Add --udate-drift [1], remove --badyear [2], and use the same
	argument for --date as in manual page[3].

	Commit [1]: f276d71a3ef6a65299deb5e14a188e0a786ecebd
	Commit [2]: f6374e1fb33d5ca726b72212b787e11fea78c0ca
	Commit [3]: cc5ec6936ea3c218b3e8c46880659db5ee01329f

ldattach:

	Add --intro-command and --pause.

	Commit: 8596f6391461bac53f5bab48f8c8b17a7c459f28

losetup:

	Add --nooverlap [1], --json [2], --noheadings and --raw [3] options,
	and direct io aka DIO output field [4].

	Commit [1]: 9a94b634a343e83bfa2a9d311074e3e520abdddd
	Commit [2]: 4827093d4b3090389ae0cabb7d8b522cf794ef90
	Commit [3]: 9f56106df6b49864ba604f6824f9fad5aeabd17a
	Commit [4]: faeef4d2e9d5e38bed57846ba903009990f24422

lscpu:

	Add --json [1] and --physical [2] options.  Add DRAWER [3] to output
	fields.

	Commit [1]: 19a5510b964c6163e7117913d3de35aba3cd0006
	Commit [2]: 0d2b5d2a72bc6619229a4d7456fbb70eda561825
	Commit [3]: b3adf6ef6676ca8c10ecdda3e1c92a861df3b885

lsipc:

	Update output columns (earlier field names were almost completely
	incorrect).  Remove --colon-separate and --print0 [1] options.  Add
	--time-format, --bytes, --numeric-perms [2], and --list [3] options.

	Commit [1]: 2a7150ac2e57418f471cca0aae259b7bcd0b90db
	Commit [2]: 9d20ffda794208d26e6b3ed09fbc38d94d0b8fc6
	Commit [3]: 2916afa3f510182987f88c17bade5dffb4aaf0b8

lsmem:

	Commit: cad2d1ac9291112bd9199b36a12335f6770356f3

lsns:

	Add cgroup --type argument.

	Commit: 2b8889c44b6752e92bfb982a5eaa2255a129e072

mount:

	Use /proc and kernel module listing for --type argument list.  Some
	of the items in the lists do not make much sense, but this is still
	better than a static list provided by package maintainer.

mountpoint:

	Remove fixme item that was left in place when this completion was
	originally wrote.

nsenter:

	Add --cgroup [1], --setuid, --setgid [2], --preserve-credentials
	[3] and, --all [4] option.

	Commit [1]: f9e7b66dbded19d798b883be68b0613749d7b8bb
	Commit [2]: 6b9e5bf670c70690d44b8ce4055e1997fb0b6496
	Commit [3]: e99a6626d6262266f012a20ae69c8e4573ee22fd
	Commit [4]: 974cc006f122f36e2187cedb9d3e58dc2d24814c

rtcwake:

	Add --auto [1], --adjfile [2], and --list-modes [3] options.

	Commit [1]: 49ebda9b89fc7360d15ca651b8492633b3bbc1d7
	Commit [2]: 3a2f3e82bba616c93d80fd88938b38144e66eee7
	Commit [3]: 43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46

setarch:

	Add --list [1] option.

	Commit [1]: 5edb0ea6bbd57dd916417737f98c9109dc1ecb5b

setsid:

	Add --wait option.

	Commit: 0dde19974bcbb07ce977992ab04b7dfa752d99b3

umount:

	Use /proc and kernel module listing for --type argument list.

unshare:

	Add --cgroup [1], --fork [2], --mount-proc [3], --map-root-user,
	--setgroups [4], and --propagation [5] options.

	Commit [1]: f9e7b66dbded19d798b883be68b0613749d7b8bb
	Commit [2]: 5088ec338fe5dcd7e9a2d8daf7e7fa7dd6f87c27
	Commit [3]: 6728ca101e7edc223a8eb99201197831d8daa61f
	Commit [4]: fbceefded6645de693d576cd988a703a6f60d207
	Commit [5]: f0f22e9c6f109f8c1234caa3173368ef43b023eb

zramctl:

	Add new output fields MEM-LIMIT, MEM-USED, and MIGRATED.

	Commit: bffc9174b89d8d9fefe7a77b9350ab8f0dbef54f

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

	Add --step [1] and --zeroout [2] options.

	Commit [1]: c472a7e35ae40652bdcf66c08a23bd50d48d1884
	Commit [2]: 7154cc892688f3c58cbbcdc2055f2635c1d0ef5b

chmem:

	Commit: 30e1ea8ba1984488fdb16506ebafe4dc23280e5a

dmesg:

	Add --time-format.

	Commit: babf605d2ca969a434f2f14579ddf44252adff4f

fallocate:

	Add --insert-range [1], --collapse-range [2], --zero-range [3], and
	--posix [4] options.  Also make the options to be in same order as
	usage() output.

	Commit [1]: b439065634e693dda385a6e5269e1d9258d6d471
	Commit [2]: 83cc932d7412cb9d23bf9f06a9a54c8566e1a788
	Commit [3]: 1fd4f609ee65be0f376ed28322fc3593026d39e4
	Commit [4]: 833f9a7aae713278eec5f85266597482f18c7370
	Command [5]: fallocate --help | awk '/--/ {print "\t\t\t\t" $2}'

flock:

	Add --no-fork option.

	Commit: 703251401cb11ee5d00a6b8f8bd9dc80c160f476

hwclock:

	Add --udate-drift [1], remove --badyear [2], and use the same
	argument for --date as in manual page[3].

	Commit [1]: f276d71a3ef6a65299deb5e14a188e0a786ecebd
	Commit [2]: f6374e1fb33d5ca726b72212b787e11fea78c0ca
	Commit [3]: cc5ec6936ea3c218b3e8c46880659db5ee01329f

ldattach:

	Add --intro-command and --pause.

	Commit: 8596f6391461bac53f5bab48f8c8b17a7c459f28

losetup:

	Add --nooverlap [1], --json [2], --noheadings and --raw [3] options,
	and direct io aka DIO output field [4].

	Commit [1]: 9a94b634a343e83bfa2a9d311074e3e520abdddd
	Commit [2]: 4827093d4b3090389ae0cabb7d8b522cf794ef90
	Commit [3]: 9f56106df6b49864ba604f6824f9fad5aeabd17a
	Commit [4]: faeef4d2e9d5e38bed57846ba903009990f24422

lscpu:

	Add --json [1] and --physical [2] options.  Add DRAWER [3] to output
	fields.

	Commit [1]: 19a5510b964c6163e7117913d3de35aba3cd0006
	Commit [2]: 0d2b5d2a72bc6619229a4d7456fbb70eda561825
	Commit [3]: b3adf6ef6676ca8c10ecdda3e1c92a861df3b885

lsipc:

	Update output columns (earlier field names were almost completely
	incorrect).  Remove --colon-separate and --print0 [1] options.  Add
	--time-format, --bytes, --numeric-perms [2], and --list [3] options.

	Commit [1]: 2a7150ac2e57418f471cca0aae259b7bcd0b90db
	Commit [2]: 9d20ffda794208d26e6b3ed09fbc38d94d0b8fc6
	Commit [3]: 2916afa3f510182987f88c17bade5dffb4aaf0b8

lsmem:

	Commit: cad2d1ac9291112bd9199b36a12335f6770356f3

lsns:

	Add cgroup --type argument.

	Commit: 2b8889c44b6752e92bfb982a5eaa2255a129e072

mount:

	Use /proc and kernel module listing for --type argument list.  Some
	of the items in the lists do not make much sense, but this is still
	better than a static list provided by package maintainer.

mountpoint:

	Remove fixme item that was left in place when this completion was
	originally wrote.

nsenter:

	Add --cgroup [1], --setuid, --setgid [2], --preserve-credentials
	[3] and, --all [4] option.

	Commit [1]: f9e7b66dbded19d798b883be68b0613749d7b8bb
	Commit [2]: 6b9e5bf670c70690d44b8ce4055e1997fb0b6496
	Commit [3]: e99a6626d6262266f012a20ae69c8e4573ee22fd
	Commit [4]: 974cc006f122f36e2187cedb9d3e58dc2d24814c

rtcwake:

	Add --auto [1], --adjfile [2], and --list-modes [3] options.

	Commit [1]: 49ebda9b89fc7360d15ca651b8492633b3bbc1d7
	Commit [2]: 3a2f3e82bba616c93d80fd88938b38144e66eee7
	Commit [3]: 43a44bfc6da8f4666c5dd6bc03c89713e6c4bd46

setarch:

	Add --list [1] option.

	Commit [1]: 5edb0ea6bbd57dd916417737f98c9109dc1ecb5b

setsid:

	Add --wait option.

	Commit: 0dde19974bcbb07ce977992ab04b7dfa752d99b3

umount:

	Use /proc and kernel module listing for --type argument list.

unshare:

	Add --cgroup [1], --fork [2], --mount-proc [3], --map-root-user,
	--setgroups [4], and --propagation [5] options.

	Commit [1]: f9e7b66dbded19d798b883be68b0613749d7b8bb
	Commit [2]: 5088ec338fe5dcd7e9a2d8daf7e7fa7dd6f87c27
	Commit [3]: 6728ca101e7edc223a8eb99201197831d8daa61f
	Commit [4]: fbceefded6645de693d576cd988a703a6f60d207
	Commit [5]: f0f22e9c6f109f8c1234caa3173368ef43b023eb

zramctl:

	Add new output fields MEM-LIMIT, MEM-USED, and MIGRATED.

	Commit: bffc9174b89d8d9fefe7a77b9350ab8f0dbef54f

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>zramctl: add bash completion script</title>
<updated>2014-08-11T12:40:14+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2014-08-03T14:10:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=2b0c19b03c1a2bf5238aa2543e8d7dd505304ed0'/>
<id>2b0c19b03c1a2bf5238aa2543e8d7dd505304ed0</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>
</feed>
