Giter VIP home page Giter VIP logo

Comments (12)

kyrofa avatar kyrofa commented on May 26, 2024

Thanks @alippert, this was just reported to me via email-- working on it now.

from nextcloud-snap.

alippert avatar alippert commented on May 26, 2024

awk is mapped via etc/alternatives to gawk and is functioning at the command line:

ubuntu@ip-10-10-0-89:~$ awk '/MemTotal/ {printf "%d", $2/1024}' /proc/meminfo
3950

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 26, 2024

@alippert can you run this test for me?

$ sudo snap install hello-world
$ hello-world.sh

That will drop you into a confined shell. Please run the following commands within it:

$ which awk
$ awk '/MemTotal/ {printf "%d", $2/1024}' /proc/meminfo

from nextcloud-snap.

alippert avatar alippert commented on May 26, 2024

Interesting:

ubuntu@ip-10-10-0-89:~$ hello-world.sh
Launching a shell inside the default app confinement. Navigate to your
app-specific directories with:
  $ cd $SNAP
  $ cd $SNAP_DATA
  $ cd $SNAP_USER_DATA
bash-4.3$ which awk
bash-4.3$ awk '/MemTotal/ {printf "%d", $2/1024}' /proc/meminfo
bash: awk: command not found
bash-4.3$ 

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 26, 2024

Interesting indeed, thank you. I thought awk was included in the core. Investigating now. To clarify, you're running vanilla Ubuntu 16.04? Not a derivative?

from nextcloud-snap.

alippert avatar alippert commented on May 26, 2024

Correct.

ubuntu@ip-10-10-0-89:~$ which awk
/usr/bin/awk

But apparently not in core.

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 26, 2024

Okay, one more test (sorry): what is the output of:

$ snap list

from nextcloud-snap.

alippert avatar alippert commented on May 26, 2024
Name         Version               Rev  Developer  Notes
hello-world  6.1                   26   canonical  -
nextcloud    9.0.50snap2           5    canonical  -
ubuntu-core  16.04+20160531.11-56  122  canonical  -

FYI: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1580018

ubuntu@ip-10-10-0-89:~$ awk -W version # try awk
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 26, 2024

Good find @alippert, I'll just bundle it for now.

from nextcloud-snap.

alippert avatar alippert commented on May 26, 2024

Thanks

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 26, 2024

@alippert can you verify that this was resolved in version 9.0.50snap3?

from nextcloud-snap.

alippert avatar alippert commented on May 26, 2024

Snap 3 looks good. Nice work - and fast too!

from nextcloud-snap.

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.