Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Tech Comics: "Groundhog Day"

Want a Job? Learn Linux

PC-BSD 9 review – to FreeBSD what Ubuntu is to Debian

Time to dispel open source myths, says Liam Maxwell

SECURITY: Nmap Inside and Out

Eight features Windows 8 'borrowed' from Linux

Malware devs embrace open-source

A tale of two distros: Ubuntu and Linux Mint

Raspberry Pi benchmarked against Beagleboard, low price is long term

20 popular Ubuntu Linux apps you may want to try



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
:10 Tips for Writing Efficient Bash Scripts
10 Tips for Writing Efficient Bash Scripts
Feb 2, 2009, 07 :04 UTC (2 Talkback[s]) (7703 reads)

[ Thanks to victorg for this link. ]

"1. Avoid Full Paths to Bash Builtins

"Bash has many builtins that can be used instead of calling external commands. You should leverage the builtin commands whenever possible since it avoids calling a subcommand from the system.

"Since Bash has builtins for some commands found in /bin and /usr/bin (such as echo), avoid using the full path for these commands and the builtin will be used."

Complete Story

Related Stories:
Enhanced Bash(Jan 31, 2009)
10 Awk Tips, Tricks and Pitfalls (Oct 24, 2008)
Bash: Redirecting Input from Multiple Files(Oct 16, 2008)
Tip of the Trade: Bash Command Line Shortcuts(Oct 15, 2008)
Bash Parameter Expansion(Oct 03, 2008)
Bash Shell: Take Control of PS1, PS2, PS3, PS4 and PROMPT_COMMAND(Sep 12, 2008)
Bash Shell PS1: 10 Examples to Make Your Linux Prompt like Angelina Jolie(Sep 12, 2008)


Index Mode   |   Flat Mode   |   Thread Mode   |   Thread Flat  
  Talkback(s) Name  and Date
"1. Avoid Full Paths to Bash Builtins" O ...   Standard way to find built-ins?   
Ken Jennings
Feb 2, 2009, 17:27:09
 
You can run "type -t echo", and it will  ...   Re: Standard way to find built-ins?   
Cameron Hutchison
Feb 2, 2009, 22:36:42
 
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!

..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP