DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th January 2010
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default ksh history and rm *

Hello,

I have a couple questions on the stock (pd)ksh running on NetBSD 5.0.1. The first question is that in tcsh and bash there are options to eliminate duplicate entries in history -- e.g., in tcsh set histdup=erase Is there a similar setting in ksh.

Also, is there a setting like the tcsh setting set rmstar in ksh that will warn on rm *? I've read about putting a -i file in the directory, but that would have to be put into every directory to offer system wide protection.

Also, when I ssh into the system, in tcsh I had a bold prompt such as: jmjcoder@netbsd-box% In ksh I can enter the prompt with \033 type codes and all is well (it displays the bold fine) and I can even set it to a variable and it displays properly (I can echo the variable and it displays correctly), but when I set it to PS1, I just get the codes and not the ansi effects I'm after. ???
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
History not saved in tcsh RandomSF FreeBSD General 8 9th December 2008 11:59 PM
working with .profile and history uptonm OpenBSD Security 1 15th August 2008 12:14 PM
Timestamps for commands in .history file? audio FreeBSD General 3 31st May 2008 01:36 PM
weird history problem mmusang FreeBSD General 2 17th May 2008 07:07 PM


All times are GMT. The time now is 01:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick