vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Tue, 23 May 2006, Marcus Glocker wrote: > On Tue, May 23, 2006 at 08:36:23PM +0200, Otto Moerbeek wrote: > > > your diff breaks this example from the man page: > > > > x=$(print \\001) > > PS1="$x$(print \\r)$x$(tput so)$x\$PWD$x$(tput se)$x> " > > > > -Otto > > Yes, because the example is posixly wrong. Care to explain? For PS1, posix describes: "PS1 Each time an interactive shell is ready to read a command, the value of this variable shall be subjected to parameter expansion and written to standard error." Also, remember we are doing ksh, not a strict posix shell. You might be right that in strict posix mode we should do things differently, but not in the regular ksh mode, AFAIKS. -Otto |