View Single Post
Old 24th February 2010
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by ocicat View Post
Try it, & report back the results.
After booting OpenBSD 4.6 on the other machine (to get ksh) it did what I expected:

a) the first line changes the prompt to the desired value

b) the second line puts some junk at the end of ~/.profile
In vi the junk looks like \d, a TAB, a couple of spaces and then [\w]#
which is not something the shell can understand.

c) logging in again with the new appendage on ~/.profile, the shell complains:

Quote:
Originally Posted by ksh
ksh: /home/myuserid/.profile[7]: d: not found
IOW it is looking for and not finding a command called d, which was invoked by the \d .

What am i missing?
Reply With Quote