Код: Выделить всё
#mdf -g
CORRECT>df -g (y|n|e|a)?

Код: Выделить всё
#mdf -g
CORRECT>df -g (y|n|e|a)?
Код: Выделить всё
#mdf -g
CORRECT>df -g (y|n|e|a)? нет
mdf: Команда не найдена.
#lf
CORRECT>ls (y|n|e|a)? нет
lf: Команда не найдена.
прикольно....а что же ты такое поставил ?Dmitriy.A писал(а):обнаружил сегодня что при неправильном наборе команды - чтото подсказывает -set autocorrect
Я приятно удивленКод: Выделить всё
#mdf -g CORRECT>df -g (y|n|e|a)? нет mdf: Команда не найдена. #lf CORRECT>ls (y|n|e|a)? нет lf: Команда не найдена.
Сотрите плиз тему!!! Просто давно не удивлялся в лучшую сторону. Обычно на одном сервере работает, а на другом нет и долго удивляешься а тут
Код: Выделить всё
env
Нет это он наверняка PC-BSD поставилQaz писал(а):у тебя tcsh шел, неправильно ввёл и он тебе типа предлагает подставить что-нить
Код: Выделить всё
cat ~/.cshrc
lissyara писал(а):Код: Выделить всё
cat ~/.cshrc
lissyara писал(а):lissyara писал(а):Код: Выделить всё
cat ~/.cshrc
Код: Выделить всё
# cat .cshrc
alias h history 25
alias j jobs -l
alias ls ls -FG
alias la ls -aFG
alias me tail -50 -f /var/log/messages
alias cgrep 'grep --colour -B 999999'
alias clz 'colorize'
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
setenv EDITOR mcedit
setenv PAGER more
setenv BLOCKSIZE K
setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx
#setenv LSCOLORS ExFxBxDxCxEgEdAbAgAcAd
setenv CLICOLOR
setenv GREP_COLOR '1;33'
setenv GREP_OPTIONS ' --color=auto'
if ($?prompt) then
# An interactive shell . set some stuff up
# set prompt="%m[%c]%#"
set prompt="%B%{\033[34m%}%m%{\033[31m%}[%c]%{\033[30m%}%b"
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
set autolist
set complet all
set autocorrect
set nobeep
set matchbeep = nomatch
set correct = cmd
set color
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
Код: Выделить всё
set correct = cmd
Код: Выделить всё
user@user /home/user
> cat .cshrc
# $FreeBSD: src/share/skel/dot.cshrc,v 1.13 2001/01/10 17:35:28 archie Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
alias ls ls -G
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/ bin /usr/X11R6/bin $HOME/bin)
setenv CLICOLOR true
if ($?prompt) then
# An interactive shell -- set some stuff up
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
user@user /home/user > dff
CORRECT> diff (y|n|e)?yes
diff: missing operand after `diff'
diff: Try `diff --help' for more information.
Exit 2
user@user /home/user > cat .tcshrc
#############################################################################
##
## .tcshrc 12Aug2004, Simos Xenitellis (simos74 at gmx dot net)
##
## This is the basic new .tcshrc file, part of the TCSHRC project
## at http://tcshrc.sourceforge.net
# basic settings for interactive and non-interactive shells
# Thanks to Heather Downs <heather@netlens.com> for the "set -f -l" flags
# "set -f" adds a variable in _front of the list, keep one copy
# "set -l" adds a variable at the end(_last) of the list, keep one copy
# paths with lower priority than system paths like /bin /sbin,,,
# Thanks to Spencer White <spencer@nexthost.com> for "if root" condition
# "root" environment (basic)
if ($LOGNAME == "root") then
set -f path = ( $path /sbin )
set -f path = ( $path /usr/sbin )
set -l path = ( $path /usr/local/sbin )
endif
# "user" + "root" environment (basic)
set -f path = ( $path /bin )
set -f path = ( $path /usr/bin )
set -l path = ( $path /usr/local/bin )
# "user" + "root" environment (misc)
set -l path = ( $path /usr/local/ssl/bin )
set -l path = ( $path /usr/local/samba/bin )
set -l path = ( $path /usr/local/java/bin )
set -l path = ( $path /usr/games )
########################################################################
# skip remaining setup if not an interactive shell
if ($?USER == 0 || $?prompt == 0) exit
# settings for interactive shells
source $HOME/.tcshrc.set
# aliases for interactive shells
source $HOME/.tcshrc.alias
# bindkeys for interactive shells
source $HOME/.tcshrc.bindkey
# completions for interactive shells
source $HOME/.tcshrc.complete
# commands for interactive shells
## FIXME this is an example, shows date and current directory
date
pwd
user@user /home/user >