R. Clayton (rclayton@clayton.cs.monmouth.edu)
(no date)
I put the two following lines in my .profile
alias send = "/export/home/class/cs-509/bin/send-files"
alias gpp = "g++ -g -c -ansi -pedantic -Wall"
When I logged out and logged back in I get the following errors
send: alias not found
.profile[16]: =: invalid alias name
gpp: alias not found
.profile[17]: =: invalid alias name
You haven't told me what shell you're running, but because I don't know
anything about csh, I'll assume it's either sh or ksh (the following applies to
either).
You've got the syntax wrong; there should be no whitespace in an alias
declaration (white space in strings doesn't count).
$ alias list = ls
list: alias not found
/bin/ksh: =: invalid alias name
$ alias list=ls
$ alias list
list=ls
$ list *ps
pa1.ps procman.ps proj-arcsim.ps proj-sysarc.ps sem.ps
$ alias send=/export/home/class/cs-509/bin/send-files
$ alias gpp="g++ -g -c -ansi -pedantic -Wall"
$ alias send gpp
send=/export/home/class/cs-509/bin/send-files
gpp='g++ -g -c -ansi -pedantic -Wall'
$ gpp t.cc
$ send -a1 -t t.cc
$
See the alias man page for more information.
This archive was generated by hypermail 2.0b3 on Fri Dec 21 2001 - 17:00:04 EST