Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA249      CA318      CA425      CA651

w2mind.computing.dcu.ie      w2mind.org


Lab - xprog


Usage:
xprog (program name)
Checks if this is a suitable name for a program, and if so, launches editor and makes sure file is executable by default.

  1. don't allow use of system program names like "ls"
  2. use "which" to see if command exists
  3. check return code "$?"
  4. touch (program)
  5. make new prog executable
  6. launch editor

Testing



Feeds      HumphrysFamilyTree.com

Bookmark and Share           On Internet since 1987.