sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
252 stars 240 forks source link

[Q] Suspected missing character #890

Closed srevinsaju closed 4 years ago

srevinsaju commented 4 years ago
sudo apt update
for module in sugar{-datastore,-artwork,-toolkit,-toolkit-gtk3,}; do
    sudo apt build-dep $module
done
sudo apt install python{,3}-six python3-empy

In the last line, is it supposed to be

sudo apt install python{2,3}-six python3-empy

Or is it a perceived mistake? I am not into Regex

~ GCI

quozl commented 4 years ago

Thanks for asking. The package names on Ubuntu for Six are python-six and python3-six, because they follow the Debian convention or standard for package names. It is not a regexp, but an expansion. The documentation for bash(1) has a section "Brace Expansion" which shows how this is used. You can test brace expansion using the shell like this;

echo python{,3}-six