DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T c

⟦369f884a2⟧ TextFile

    Length: 597 (0x255)
    Types: TextFile
    Names: »csh-compat«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦ca1f037a2⟧ »./bash-1.04.tar.Z« 
        └─⟦46465a4db⟧ 
            └─⟦this⟧ »bash-1.04/examples/csh-compat« 

TextFile

# C-shell compatabilty package.
# setenv VAR VALUE
function setenv () {
  export $1="$2"
}

function unsetenv () {
  unset $1
}

function alias () {
  local name=$1
  shift
  local value="$*"

  if [ "$name" = "" ]; then
    builtin alias
  elif [ "$value" = "" ]; then
    builtin alias $name
  else
    builtin alias $name="$value"
  fi
}

# Can't write foreach yet.  Need pattern matching, and a few extras.
function foreach () {
echo 'Can'\''t do `foreach'\'' yet.  Type "help for".'
}

# Make this work like csh's.  Special case "term" and "path".
#set () {
#}

chdir () {
  builtin cd $*
 }