Issue382

Title grml-scripts::caps-ctrl: Using $(...) instead of backticks.
Priority feature Status deferred
Superseder Nosy List maddi, mika, z3ttacht
Assigned To mika Topics zsh

Created on 2008-01-23.19:06:08 by z3ttacht, last changed 2008-02-12.16:02:29 by z3ttacht.

Files
File name Uploaded Type Edit Remove
grml-scripts_caps-ctrl_delete-autoload-colors.diff z3ttacht, 2008-02-12.14:08:18 text/x-diff
grml-scripts_caps_ctrl_no_backticks.patch z3ttacht, 2008-01-23.19:06:08 text/x-diff
Messages
msg1173 (view) Author: z3ttacht Date: 2008-02-12.16:02:28
> In association to that, how eager are we to switch this function to
> /bin/dash?
> IMHO the only zsh-feature used is `repeat 15 echo -n' which can easily
> be substituted by a for-loop in dash.
And afaics, that's not even nessecary.

  ,----[ man 5 keymaps ]-
  | If you enter a key definition line with only and exactly one
  | action code after the equals sign, it has a special meaning. If
  | the code (numeric or symbolic) is not an ASCII letter, it means
  | the code is implicitly replicated through all columns being
  | defined.
  `----
msg1172 (view) Author: z3ttacht Date: 2008-02-12.14:08:18
I guess `autoload -U colors ; colors' is left from an older version.
Imho it's, due to the use of `/etc/grml/lsb-functions', obsolete.

In association to that, how eager are we to switch this function to
/bin/dash?
IMHO the only zsh-feature used is `repeat 15 echo -n' which can easily
be substituted by a for-loop in dash.
But then check4progs doesn't work either, I guess. So we would have to
test for the needed programs in a more classic way, à la [[ -x ]] or
by a local function check4progs.
msg1097 (view) Author: mika Date: 2008-01-25.23:07:59
Thanks for your work, Alex - I'm setting it to "deferred" because I'd like to 
see such stuff integrated in grml after we have released the new stable 
release. I'll apply your patch then, thanks.

regards,
-mika-
msg1087 (view) Author: z3ttacht Date: 2008-01-23.19:06:08
Using $(...) instead of backticks in caps-ctrl, following grml's
policy for shell scripts.
<http://grml.org/policy -- 5.4. Good practices for shellscript>
History
Date User Action Args
2008-02-12 16:02:29z3ttachtsetnosy: mika, maddi, z3ttacht
messages: + msg1173
2008-02-12 14:08:18z3ttachtsetfiles: + grml-scripts_caps-ctrl_delete-autoload-colors.diff
nosy: mika, maddi, z3ttacht
messages: + msg1172
2008-01-25 23:08:00mikasetstatus: unread -> deferred
assignedto: mika
messages: + msg1097
nosy: mika, maddi, z3ttacht
2008-01-23 19:06:08z3ttachtcreate