Differences between revisions 1 and 76 (spanning 75 versions)
Revision 1 as of 2009-09-28 19:49:35
Size: 998
Editor: ppp089210033244
Comment: beginning of a page
Revision 76 as of 2016-04-25 22:59:36
Size: 380
Editor: KiraBohr3
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This page is an attempt to list some of the most common bashisms ie features
not defined by POSIX (ie don't work in dash).
It probably won't be exhaustive. Note also we talk about "bashism" because this wiki is largely bash centric
but a number of these extensions work in other shells like ksh or zsh.

== Expansions

* Brace Expansion, eg {1..10} is not defined by posix

== Parameter Expansion

list of expansion not defined by posix:

* ${name:n:l}
* ${name/ }
* ${!name}

== Arrays

* arrays are not defined by posix.

== test

* [[ is not defined by posix
* == as an argument of test (aka [) is not defined by posix
* < > to compare numbers as argument of test is not defined by posix, though dash implements it
* -nt, -ot, -ef are not defined by posix

== Builtins

* echo. posix doesn't define any options, use printf
* printf "-v" is not defined by posix. also the %b and %q format are not defined by posix
* read, the only option defined by posix is "-r"
Name: Kira Bohr<<BR>><<BR>>
Age: 28 years old<<BR>><<BR>>
Country: United States<<BR>><<BR>>
Home town: Warrensville Heights <<BR>><<BR>>
Postal code: 44128<<BR>><<BR>>
Street: 1590 Parker Drive<<BR>><<BR>>
<<BR>><<BR>>
my web page ... The Watch Hut - view all voucher codes; [[http://www.promotionvoucher.co.uk/vouchers/thewatchhut/|http://www.promotionvoucher.co.uk/]],

Name: Kira Bohr

Age: 28 years old

Country: United States

Home town: Warrensville Heights

Postal code: 44128

Street: 1590 Parker Drive



my web page ... The Watch Hut - view all voucher codes; http://www.promotionvoucher.co.uk/,

Bashism (last edited 2022-10-20 23:13:29 by larryv)