LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


  1. Old Comment
    Posted Yesterday at 07:07 PM by astrogeek astrogeek is offline
  2. Old Comment

    Apparently [[ *"$a"* == $b ]] is DIFFERENT from [[ $b == *"$a"* ]]

    Quote:
    Originally Posted by astrogeek View Comment
    [...]

    By associativity, $b is evaluated first, it is "foo/bar/gee". Then the thing on the right *"foo/bar"* is evaluated and tested for equality with the thing on the left. "foo/bar" inside something else (i.e. with optional leading or trailing characters) is indeed equal to "foo/bar/gee".

    Hope this helps!

    It definitely does! It's a shame I can't upvote blog comments, apparently.
    Posted Yesterday at 05:57 PM by the dsc the dsc is offline
  3. Old Comment

    Apparently [[ *"$a"* == $b ]] is DIFFERENT from [[ $b == *"$a"* ]]

    Actually, that is not odd at all, and yes they are two totally different tests.

    The result is due to ordinary associativity and precedence rules. (About fifth grade concepts ). The equality test is left associative - it evaluates the left side first, then compares the right side to what was on the left (it has to start somewhere!).

    The first test is actually "a equals b", not "b contains a" as your printed string says.

    This is because the equal test is left associative - the thing on the left is evaluated first, then the thing on the right is tested for equality to it.

    The thing on the left is *"$a"*, or $a within something else... but the something else here is null, so it is just "$a", or "foo/bar". Then the thing on the right $b is evaluated for equality with exactly that, "foo/bar", and "foo/bar/gee" is indeed not equal to that!

    The second test is different, "b equals (a with optional leading and trailing characters)".

    By associativity, $b is evaluated first, it is "foo/bar/gee". Then the thing on the right *"foo/bar"* is evaluated and tested for equality with the thing on the left. "foo/bar" inside something else (i.e. with optional leading or trailing characters) is indeed equal to "foo/bar/gee".

    Hope this helps!
    Posted Yesterday at 05:54 PM by astrogeek astrogeek is offline
  4. Old Comment

    Apparently [[ *"$a"* == $b ]] is DIFFERENT from [[ $b == *"$a"* ]]

    Yikes. I feel your pain. I use bash every day but I just don't trust it to be consistent in its syntax. I think I understand something in bash and then ... it does something squirrely and unexpected.
    Posted 04-26-2017 at 05:32 PM by jr_bob_dobbs jr_bob_dobbs is offline
  5. Old Comment

    Winter Vacation is almost over

    Glad you had a good winter in Florida. You'll be back in time for some of the lilacs still. The redbuds are past.
    Posted 04-21-2017 at 12:53 PM by vmccord vmccord is offline
  6. Old Comment

    ibus input How TO

    Does it still work on Slackware64 14.2 ?
    The folder xinput.d does not exist, and the file could not be created.
    Posted 04-17-2017 at 09:36 AM by limpingstone limpingstone is offline
  7. Old Comment

    Yet another version of exGENT Live (Gentoo Linux) – now with Xfce4 and LXQt – Build 170407

    Softpedia about exGENT Build 170407:

    GNU/Linux developer Arne Exton announced the release of yet another build of his Gentoo-based exGENT Live Linux distribution, using the lightweight Xfce and LXQt desktop environments.

    exGENT Build 170407 is dubbed exGENT 2017 Xfce4/LXQt Live DVD by Arne Exton, as it uses both Xfce 4.12.1 and LXQt 0.11.0 desktop environments on the same image. Users can choose between Xfce and LXQt from the login screen before using the distribution, which is powered by the Linux 4.10.4 kernel.

    "I call it exGENT 2017 Xfce4/LXQt Live DVD. It replaces version 20170331. The ISO file is of 2620 MB due to the fact that this version has a lot of packages pre-installed. Despite this, exGENT version 170407 runs surprisingly fast from DVD or USB. Even in VirtualBox and VMware. Faster than most other Linux live systems," says the dev.

    READ MORE: http://news.softpedia.com/news/gento...0-514710.shtml
    Posted 04-13-2017 at 07:02 AM by exton exton is offline
  8. Old Comment

    Getting iOS 10.x working with Slackware 14.2

    Nuts. The iphone 5c just updated and now longer works. Same iOS as the 6s; same desktop.
    Posted 04-11-2017 at 11:25 PM by kingbeowulf kingbeowulf is offline
  9. Old Comment

    Getting iOS 10.x working with Slackware 14.2

    So far, iOS 10.3.1 also works with this update, and thunar now lost those funky entries in the original screen shot.
    Posted 04-09-2017 at 09:44 PM by kingbeowulf kingbeowulf is offline
  10. Old Comment

    The Loss of a Pet

    sorry to hear, im interested in sugar gliders now. that or a bunny, chinchilla, dog or something.
    Posted 04-03-2017 at 12:42 AM by slackartist slackartist is offline
  11. Old Comment

    The Loss of a Pet

    Please accept my sympathies. Pets are wonderful. And Sweetie was beautiful.
    Posted 03-31-2017 at 05:03 PM by vmccord vmccord is offline
  12. Old Comment

    Ubuntu OS upgrades usually degrade function on older machines

    Addendum: Recently, I discovered that the Akonadi errors were associated with KAlarm being set for automatic start-up at log in. To get rid of the error box, I opened Startup Applications from the Unity Dash and unchecked KAlarm. I don't know why, when, or how this was chosen for start up. Since I haven't been using KAlarm, this change doesn't affect anything I do.
    Posted 03-29-2017 at 06:11 PM by flshope flshope is offline
  13. Old Comment

    Android-x86_64 Nougat 7.1.1 – Build 170201 – with GAPPS and kernel 4.4.40-exton-android-x86_64

    Running AndEX Nougat in VirtualBox and/or VMware

    You can run AndEX Nougat Build 170201 very well live in VirtualBox. You can even install new apps. You can of course also install the system. Unfortunately the sound is distorted. I have therefore kept my previous Build AndEX Nougat 7.0 161107, since you can run Build 161107 in VirtualBox and VMware with sound working. AndEX 7.1.1 Build 170201 can’t be installed in VMware. AndEX 7.0 Build 161107 works very well in VMware (and VirtualBox) though. Watch a slideshow, which shows all installation steps in VMware: http://andex.exton.net/andex-nougat-...-slideshow.gif

    READ MORE: http://andex.exton.net/
    Posted 03-29-2017 at 10:47 AM by exton exton is offline
  14. Old Comment

    ExTiX 17.2 – “The Ultimate Linux System” – with LXQt 0.10.0 and kernel 4.10.0-14-exton – Build 170320

    The download rate for ExTiX at SourceForge.net is at the moment (170328) over 4000 per week! Watch this screenshot: http://extix.se/extix-sourceforge-170328.jpg
    Posted 03-28-2017 at 11:14 AM by exton exton is offline

  



All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration