Giter Club home page Giter Club logo

Comments (7)

luc14n0 avatar luc14n0 commented on August 17, 2024

Out of curiosity, what shell are you using and how are you setting the alias.

from zypper.

bertronika avatar bertronika commented on August 17, 2024

It's bash, with alias zypper='zypper -s 1' defined.

from zypper.

luc14n0 avatar luc14n0 commented on August 17, 2024

OK, thanks.

I'm guessing that in order to having this as a configuration in zypp.conf, that limitation Zypper has about not supporting global options for sub-commands must be dealt with first. Zypper`s manpage states:

Using zypper global-options together with subcommands, as well as
executing subcommands in zypper shell is currently not supported.

Just like you see in the error message you're getting. But now I'm curious to now what are those limitations.

from zypper.

mlandres avatar mlandres commented on August 17, 2024

You cant deal with this. A subcommand is a standalone program or shell script (like zypper-log). You can even write your own ones. We have no control about what options those programs support. We (the zypp-team) neither provide nor maintain most of them.

from zypper.

luc14n0 avatar luc14n0 commented on August 17, 2024

That was the first thing that came to my mind, the "unknown" factor.

from zypper.

bertronika avatar bertronika commented on August 17, 2024

We have no control about what options those programs support.

That's why I'm proposing a change, internal to zypper. I've picked zypper.conf because it already contains color configuration, and table style would complement it. By making it an entry in the configuration file, no more aliases with global options, which conflict with subcommands, would be necessary.

from zypper.

luc14n0 avatar luc14n0 commented on August 17, 2024

Could that work out Michael? It kind of makes sense to have this as an option in zypper.conf to avoid that conflict IMO, since it wouldn't be Zypper outputting text, right?. How does Zypper handle sub-commands, is it just like a simple wrapper, or does it do something special?

from zypper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.