News:

How did you even find this place?

Main Menu

awk sucks and I hate it

Started by rabbit, April 20, 2008, 06:16:58 PM

Previous topic - Next topic

0 Members and 8 Guests are viewing this topic.

rabbit

bash > awk
I hate awk so very much.

Warrior

One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

rabbit

Too bad Windows things are of no use to me in a Unix class.

nslay

Quote from: rabbit on April 20, 2008, 06:16:58 PM
bash > awk
I hate awk so very much.

sh > bash
I hate bash so very much.  It's not a good replacement for sh, and its marketed as "standard".  Then Linux kiddies write scripts that use it, breaking portability...somehow this reminds me of the very company Linux kiddies hate so much.  Irony indeed...
An adorable giant isopod!

Warrior

Quote from: nslay on April 27, 2008, 03:43:27 PM
Quote from: rabbit on April 20, 2008, 06:16:58 PM
bash > awk
I hate awk so very much.

sh > bash
I hate bash so very much.  It's not a good replacement for sh, and its marketed as "standard".  Then Linux kiddies write scripts that use it, breaking portability...somehow this reminds me of the very company Linux kiddies hate so much.  Irony indeed...

porting bash is hard.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

iago

Quote from: nslay on April 27, 2008, 03:43:27 PM
Quote from: rabbit on April 20, 2008, 06:16:58 PM
bash > awk
I hate awk so very much.

sh > bash
I hate bash so very much.  It's not a good replacement for sh, and its marketed as "standard".  Then Linux kiddies write scripts that use it, breaking portability...somehow this reminds me of the very company Linux kiddies hate so much.  Irony indeed...

What are the key differences? I've always found them inter-compatible.

nslay

Quote from: iago on April 27, 2008, 05:28:30 PM
Quote from: nslay on April 27, 2008, 03:43:27 PM
Quote from: rabbit on April 20, 2008, 06:16:58 PM
bash > awk
I hate awk so very much.

sh > bash
I hate bash so very much.  It's not a good replacement for sh, and its marketed as "standard".  Then Linux kiddies write scripts that use it, breaking portability...somehow this reminds me of the very company Linux kiddies hate so much.  Irony indeed...

What are the key differences? I've always found them inter-compatible.

bash is marketed as a replacement for sh, but it features more than just the basic bourne shell functionality...thats good and dandy except people are writing scripts for bash instead of sh, the POSIX standard.  In short, bash-specific scripts don't work with sh.
An adorable giant isopod!

iago

Quote from: nslay on May 02, 2008, 08:23:08 PM
Quote from: iago on April 27, 2008, 05:28:30 PM
What are the key differences? I've always found them inter-compatible.

bash is marketed as a replacement for sh, but it features more than just the basic bourne shell functionality...thats good and dandy except people are writing scripts for bash instead of sh, the POSIX standard.  In short, bash-specific scripts don't work with sh.
Great, which leads me to another question: What are the key differences? I've always found them inter-compatible.

nslay

#8
Quote from: iago on May 03, 2008, 03:10:18 AM
Quote from: nslay on May 02, 2008, 08:23:08 PM
Quote from: iago on April 27, 2008, 05:28:30 PM
What are the key differences? I've always found them inter-compatible.

bash is marketed as a replacement for sh, but it features more than just the basic bourne shell functionality...thats good and dandy except people are writing scripts for bash instead of sh, the POSIX standard.  In short, bash-specific scripts don't work with sh.
Great, which leads me to another question: What are the key differences? I've always found them inter-compatible.

Of course, bash can run sh scripts.  The converse is not true. 
How should I know?  I don't use bash!  You don't need to be a bash user to know that one isn't compatible with the other!

EDIT: Oh, and if you didn't know, sh in Linux is bash.  Maybe thats why you found them inter-compatible.
An adorable giant isopod!

nslay

A great example:
http://en.wikipedia.org/wiki/Bash#Portability

Quote
Shell scripts written with Bash-specific features (bashisms) will not function on a system using the Bourne shell or one of its replacements, unless bash is installed as a secondary shell and the script begins with #!/bin/bash. This problem became particularly important when ubuntu began, in October 2006, to ship the Debian Almquist shell, dash, as the default scripting shell, causing a wide variety of scripts to fail.

Just so you know, dash and ash are both POSIX compliant.  And again, I reiterate that I hate bash because Linux kiddies don't realize that there is a standard and write bash-specific scripts.
An adorable giant isopod!

iago

You aren't answering my question! I'm asking WHY they are different. WHAT is different about them? What will work in bash that doesn't work in sh?

Any script I've written seems to be cross compatible, so I'm curious where the differences lie.

Joe

Perhaps I've been on Windows too long in the past, but what's wrong with just using bash? Does it leak memory or something, or is it just the UNIX philosophy of not having features that make the 10-mile uphill walk easier?
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Camel

Quote from: Joe on May 04, 2008, 06:11:30 PM
Perhaps I've been on Windows too long in the past, but what's wrong with just using bash? Does it leak memory or something, or is it just the UNIX philosophy of not having features that make the 10-mile uphill walk easier?

Quote from: Warrior on April 27, 2008, 04:11:11 PM
porting bash is hard.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!