Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 19/02/2006, à 17:43

mezhoud

la sous commande set sous bash-ubuntu

j'aurai besoin de la commande set pour mes scripts.

man set  ne donne rien

# apt-cache search          %donne une liste de je ne sais quoi
# apt-get install set          %ne trouve pas le paquet.

alors que le commande existe.

merci

Hors ligne

#2 Le 19/02/2006, à 19:07

Noé

Re : la sous commande set sous bash-ubuntu

La commande set me donne ça :

'!'=0
'#'=0
'$'=9265
'*'=()
-=569XZhims
0=/bin/zsh
'?'=0
@=()
ARGC=0
BAUD=38400
CDPATH=''
COLUMNS=135
CPUTYPE=i686
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-yklAxGnQoA,guid=6a7bf84386165189d03abb1ce6db0b00'
DESKTOP_SESSION=kde
DISPLAY=:0
DM_CONTROL=/var/run/xdmctl
EGID=1000
ERRNO=4
EUID=1000
FCEDIT=vi
FIGNORE=''
FPATH=/usr/local/share/zsh/site-functions:/usr/share/zsh/4.2.5/functions/Completion:/usr/share/zsh/4.2.5/functions/Completion/AIX:/usr/share/zsh/4.2.5/functions/Completion/BSD:/usr/share/zsh/4.2.5/functions/Completion/Base:/usr/share/zsh/4.2.5/functions/Completion/Cygwin:/usr/share/zsh/4.2.5/functions/Completion/Darwin:/usr/share/zsh/4.2.5/functions/Completion/Debian:/usr/share/zsh/4.2.5/functions/Completion/Linux:/usr/share/zsh/4.2.5/functions/Completion/Mandrake:/usr/share/zsh/4.2.5/functions/Completion/Redhat:/usr/share/zsh/4.2.5/functions/Completion/Unix:/usr/share/zsh/4.2.5/functions/Completion/X:/usr/share/zsh/4.2.5/functions/Completion/Zsh:/usr/share/zsh/4.2.5/functions/MIME:/usr/share/zsh/4.2.5/functions/Misc:/usr/share/zsh/4.2.5/functions/Prompts:/usr/share/zsh/4.2.5/functions/TCP:/usr/share/zsh/4.2.5/functions/Zftp:/usr/share/zsh/4.2.5/functions/Zle
GID=1000
GS_LIB=/home/no/.fonts
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/no/.gtkrc-2.0:/home/no/.kde/share/config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/no/.gtkrc:/home/no/.kde/share/config/gtkrc
HISTCHARS='!^#'
HISTCMD=12
HISTSIZE=30
HOME=/home/no
HOST=FreeDotDotNo
IFS='
'
KDE_FULL_SESSION=true
KDE_MULTIHEAD=false
KEYTIMEOUT=40
KONSOLE_DCOP='DCOPRef(yakuake-9259,konsole)'
KONSOLE_DCOP_SESSION='DCOPRef(yakuake-9259,session-1)'
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR:fr:en_GB:en
LINENO=13
LINES=29
LISTMAX=100
LOGCHECK=60
LOGNAME=no
MACHTYPE=i686
MAILCHECK=60
MAILPATH=''
MANPATH=''
MODULE_PATH=/usr/lib/zsh/4.2.5
NULLCMD=cat
OLDPWD=/home/no
OPTARG=''
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games
POSTEDIT=''
PPID=9259
PROMPT='[%B%*%b]@%B%/%b%# '
PROMPT2='%_> '
PROMPT3='?# '
PROMPT4='+%N:%i> '
PS1='[%B%*%b]@%B%/%b%# '
PS2='%_> '
PS3='?# '
PS4='+%N:%i> '
PSVAR=''
PWD=/home/no
RANDOM=16147
READNULLCMD=/usr/bin/pager
RPROMPT=''
RPROMPT2=''
RPS1=''
RPS2=''
SAVEHIST=0
SECONDS=10757
SESSION_MANAGER=unix/FreeDotDotNo:/tmp/.ICE-unix/9246
SHELL=/bin/zsh
SHLVL=2
SPROMPT='zsh: correct '\''%R'\'' to '\''%r'\'' [nyae]? '
SSH_AGENT_PID=9193
SSH_AUTH_SOCK=/tmp/ssh-lahsNI9163/agent.9163
TERM=xterm
TIMEFMT='%J  %U user %S system %P cpu %*E total'
TMPPREFIX=/tmp/zsh
TRY_BLOCK_ERROR=-1
TTY=/dev/pts/0
TTYIDLE=0
UID=1000
USER=no
USERNAME=no
VENDOR=pc
WATCH=''
WATCHFMT='%n has %a %l from %m.'
WINDOWID=27263161
WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>'
XCURSOR_THEME=kubuntu
XDM_MANAGED='/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic'
ZSH_NAME=zsh
ZSH_VERSION=4.2.5
_=set
_cmd_variant=(ls gnu )
_comp_assocs=()
_comp_dumpfile=/home/no/.zcompdump
_comp_options=(glob bareglobqual nullglob rcexpandparam extendedglob unset NO_markdirs NO_globsubst NO_shwordsplit NO_shglob NO_kshglob NO_ksharrays NO_kshtypeset NO_cshnullglob NO_allexport NO_aliases NO_errexit NO_octalzeroes)
_comp_setup='setopt localoptions localtraps ${_comp_options[@]};
             exec </dev/null;
             trap - ZERR'
_compautos=(_call_program +X )
_comps=(unpack _pack pushd _cd -value-,LESS,-default- _less icombine _ispell upgradepkg _pkgtool mysqldump _mysql_utils -assign-parameter- _assign hotjava _webbrowser pkg_info _bsd_pkg xfig _xfig dvibook _dvi includeres _psutils time _precommand ps2pdf _ps strip _strip mount _mount getafm _psutils echotc _echotc mozilla-firefox _mozilla echoti _echoti identify _imagemagick sync _nothing bzip2recover _bzip2 pswrap _ps readonly _typeset -value-,TERMINFO_DIRS,-default- _dir_list ssh-add _ssh extractres _psutils ypbind _yp xping _hosts apt-cache _apt enscript _enscript '-redirect-,>,bzip2' _bzip2 mutt _mutt xwit _xwit -vared- _in_vared - _precommand mkzsh _mkzsh . _source nocorrect _precommand linux _uml history _fc repl _mh perl _perl ypmatch _yp galeon _webbrowser nmblookup _samba mplayer _mplayer lsvg _lsvg gprof _gprof wiggle _wiggle chown _chown screen _screen show _mh -first- _first flist _mh cygrunsrv.exe _cygrunsrv aaaa _hosts pdffonts _pdf getopts _vars arena _webbrowser urpme _urpmi bg _jobs_bg rlogin _rlogin urpmi _urpmi btdownloadgui _bittorrent gqview _gqview psmerge _psutils urpmq _urpmi postsuper _postfix spamassassin _spamassassin ntalk _other_accounts vncserver _vnc dvicopy _dvi dircmp _directories mmount _mtools btreannounce _bittorrent ytalk _other_accounts pwait _pids dvidvi _dvi cd _cd urpmi.removemedia _urpmi apt-move _apt-move perldoc _perldoc '-redirect-,<,bunzip2' _bzip2 slogin _ssh ci _rcs setfattr _attr netrik _webbrowser print _print source _source co _rcs r _fc flists _mh javadoc _java kldload _kld pmeth _perl_modules pdfjadetex _tex skipstone _webbrowser type _which zcompile _zcompile rusage _precommand ifdown _net_interfaces dd _dd df _directories dpkg-reconfigure _dpkg rsync _rsync -value-,LANG,-default- _locales cal _cal pstotgif _pspdf mhlist _mh -value-,PRINTER,-default- _printers aap _aap ps2pdf12 _ps ps2pdf13 _ps mkshortcut _mkshortcut ps2pdf14 _ps mformat _mtools opera _webbrowser ps2ps _ps du _du rehash _hash man _man baz _baz jar _java '-redirect-,<,gunzip' _gzip compdef _compdef slrn _slrn lsmod _modutils putclip _putclip val _sccs prun _pids rar _rar -value-,GREP_OPTIONS,-default- _grep tar _tar ispell _ispell apt-get _apt pstop _pids whom _mh mtoolstest _mtools zipinfo _zip next _mh unsetopt _unsetopt mmove _mtools iptables-restore _iptables javac _java getfacl.exe _getfacl pscp.exe _pscp unfunction _functions fc _fc javah _java emulate _emulate fg _jobs_fg gcc _gcc cdcd _cdcd dch _debchange removepkg _pkgtool iptables-save _iptables tcsh _sh javap _java mcd _mtools sortm _mh printenv _printenv apache2ctl _apachectl pdflatex _tex sftp _ssh ncl _nedit showchar _psutils groups _users smbclient _samba rcp _rlogin scp _ssh eval _precommand rcs _rcs cdc _sccs nohup _precommand zcp _zmv bogofilter _bogofilter gdb _gdb fixtpps _psutils -value-,http_proxy,-default- _urls mtype _mtools jdb _java stty _stty mhshow _mh chimera _webbrowser gs _gs zone _hosts gv _gv usermod _user_admin export _typeset prompt _prompt btdownloadcurses _bittorrent dict _dict jarsigner _java mdu _mtools unhash _unhash amaya _webbrowser irssi _irssi pmexp _perl_modules darcs _darcs patch _patch getfacl _getfacl autoload _typeset ypwhich _yp sed _sed traceroute _hosts true _nothing get _sccs mhpath _mh zed _zed let _math dvips _dvi getent _getent '-redirect-,<,bzip2' _bzip2 smitty _smit write _users_on set _set modinfo _modutils zen _webbrowser btrename _bittorrent gtar _tar lintian _lintian xterm _xterm tex _tex ecasound _ecasound xev _x_utils mattrib _mtools '-redirect-,<,gzip' _gzip Mosaic _webbrowser chfn _users cygpath.exe _cygpath odmshow _object_classes rcsdiff _rcs xfd _x_utils dcopclient _dcop gsbj _pspdf bttrack _bittorrent fixwpps _psutils vared _vared fixwwps _psutils ps2pdfwr _ps diff _diff -command- _autocd mkzsh.exe _mkzsh latex _tex ps2ascii _pspdf command _command urpmi.addmedia _urpmi dpkg-source _dpkg_source ggv _gnome-gv whoami _nothing -brace-parameter- _brace_parameter apachectl _apachectl exec _precommand bzip2 _bzip2 umount _mount ssh-agent _ssh insmod _modutils mgv _pspdf integer _typeset -value-,LESSCHARSET,-default- _less burst _mh -value-,P4USER,-default- _perforce -value-,LANGUAGE,-default- _locales psnup _psutils builtin _builtin btlaunchmanycurses _bittorrent import _imagemagick '-redirect-,>,gzip' _gzip dcopobject _dcop fned _zed ssh-keygen _ssh mondoarchive _mondo pdftops _pdf update-alternatives _update-alternatives python _python mhn _mh killall _killall sched _sched apt-cdrom _apt apt-config _apt getclip _getclip gsdj _pspdf php _php pmpath _perl_modules uml_mconsole _uml mlabel _mtools pcred _pids flex _flex update-rc.d _update-rc.d btmakemetafile _bittorrent fakeroot _fakeroot lp _lp fixpspps _psutils -value-,CFLAGS,-default- _gcc ls _ls xargs _xargs ps2epsi _ps xwud _x_utils pstops _psutils tin _tin cpio _cpio grep _grep jobs _jobs_builtin zip _zip buildhash _ispell mozilla-xremote-client _mozilla mysql _mysql_utils apt-show-versions _apt-show-versions installpkg _pkgtool xdvi _xdvi -value-,CPPFLAGS,-default- _gcc yppoll _yp gdiff _diff -condition- _condition mt _mt native2ascii _java mx _hosts pdf2dsc _pdf xdpyinfo _x_utils cvsup _cvsup nc _netcat wajig _wajig composite _imagemagick disown _jobs_fg zpty _zpty valgrind _valgrind tunctl _uml g++ _gcc debfoster _debfoster ns _hosts p4 _perforce btlaunchmany _bittorrent konqueror _webbrowser xfontsel _x_utils which _which newgrp _groups gpgv _gpg ali _mh catchsegv _precommand make-kpkg _make-kpkg mozilla _mozilla -parameter- _parameter -value-,ANT_ARGS,-default- _ant dumper.exe _dumper elm _elm ncal _cal setopt _setopt animate _imagemagick tla _tla apropos _man sccsdiff _sccs kpdf _pdf packf _mh dpkg _dpkg gls _ls xsetroot _x_utils zle _zle anno _mh info _texinfo nmap _nmap xli _xloadimage unalias _aliases merge _rcs egrep _grep zln _zmv disable _disable fgrep _grep a2ps _a2ps uml_moo _uml -value-,TZ,-default- _time_zone pmvers _perl_modules mmd _mtools svnadmin _subversion rmiregistry _java comb _sccs rmf _mh -value-,TERM,-default- _terminals getconf _getconf dcopfind _dcop clear _nothing mmm _webbrowser admin _sccs cygserver.exe _cygserver alias _alias -value-,XML_CATALOG_FILES,-default- _xmlsoft rmm _mh texi2dvi _texinfo comp _mh svnadmin-static _subversion float _typeset munchlist _ispell mysqlshow _mysql_utils cygserver _cygserver gzip _gzip inc _mh mailx _mail loadkeys _loadkeys pdftopbm _pdf zmv _zmv uml_switch _uml nice _nice pkgtool _pkgtool acroread _acroread ant _ant bogoutil _bogofilter pcat _pack env _precommand pkg_add _bsd_pkg pman _perl_modules pmap _pids '-redirect-,>,compress' _compress '-redirect-,<,uncompress' _compress nedit-nc _nedit passwd _users pinef _pine nedit _nedit pmcat _perl_modules psresize _psutils rc _sh -value-,PERLDOC,-default- _perldoc chage _users -value-,LPDEST,-default- _printers m-a _module-assistant mogrify _imagemagick shift _arrays joe _joe -default- _default gnome-gv _gnome-gv times _nothing sysctl _sysctl log _nothing mdel _mtools soa _hosts dcopref _dcop enable _enable -value-,GZIP,-default- _gzip antiword _antiword zstyle _zstyle -redirect- _redirect mren _mtools xon _x_utils functions _typeset xloadimage _xloadimage sh _sh dviconcat _dvi figlet _figlet read _read apm _apm gpg _gpg pack _pack mpc _mpc dvitype _dvi dcop _dcop keytool _java pick _mh unrar _rar su _su oggdec _vorbis local _typeset compress _compress lpq _lp lpr _lp rpm _rpm gslj _pspdf pdfimages _pdf xvncviewer _vnc groupadd _user_admin gslp _pspdf pscp _pscp prcs _prcs xsltproc _xmlsoft find _find logname _nothing pldd _pids scan _mh ifconfig _ifconfig bindkey _bindkey xmllint _xmlsoft fink _fink yppush _yp socket _socket help _sccs chdir _cd montage _imagemagick unace _unace losetup _losetup serialver _java mencal _mencal open _open hdiutil _hdiutil netscape _netscape retawq _webbrowser display _imagemagick getclip.exe _getclip light _webbrowser star _tar stat _stat msgchk _mh bash _sh iconv _iconv ypcat _yp unlimit _limits ruby _ruby groupdel _groups bogotune _bogofilter arp _arp mrd _mtools pwdx _pids whois _whois gsnd _pspdf '-redirect-,<,compress' _compress uncompress _compress extcheck _java zdump _zdump install-info _texinfo podpath _perl_modules xmosaic _webbrowser rmdel _sccs prs _sccs curl _urls prt _sccs trap _trap appletviewer _java killall5 _killall attr _attr pmload _perl_modules prev _mh csh _sh dpkg-deb _dpkg limit _limit fsh _fsh mail _mail psselect _psutils smbstatus _samba chsh _users ksh _sh mhparam _mh ypserv _yp dvitodvi _dvi mread _mtools express _webbrowser -value-,LDFLAGS,-default- _gcc sact _sccs sccs _sccs mdir _mtools pstoedit _pspdf rsh _rlogin ssh _ssh dirs _dirs mdeltree _mtools explodepkg _pkgtool zsh _sh pkg_create _bsd_pkg domainname _yp ijoin _ispell reportbug _bug gmplayer _mplayer -value-,P4MERGE,-default- _perforce configure _configure -redirect-,-default-,-default- _files unget _sccs Mail _mail pfiles _pids -math- _math mkshortcut.exe _mkshortcut nail _mail pdfinfo _pdf mcopy _mtools bts _bts ftp _hosts false _nothing kill _kill dumper _dumper fixpsditps _psutils policytool _java unset _vars global _global mtr _mtr dist _mh whereis _whereis whence _which sudo _sudo xtp _imagemagick folder _mh bug _bug make _make convert _imagemagick getfattr _attr links _links -array-value- _value xsetbg _xloadimage xv _xv typeset _typeset fwhois _whois cygstart _cygstart what _sccs dillo _webbrowser lastb _last w3m _w3m rup _hosts btdownloadheadless _bittorrent tidy _tidy nslookup _nslookup debsign _debsign urpmi.update _urpmi forw _mh lslv _lslv mhstore _mh vux _vux ttyctl _ttyctl xauth _xauth cvs _cvs mysqldiff _mysqldiff epsffit _psutils cygrunsrv _cygrunsrv psig _pids ypset _yp svn _subversion vncviewer _vnc finger _finger zmail _mail dput _dput fixfmps _psutils rmdir _directories odmget _object_classes vuxctl _vux elinks _elinks ogginfo _vorbis sabcmd _sablotron makeinfo _texinfo chmod _chmod auto-apt _auto-apt chkconfig _chkconfig tryaffix _ispell psbook _psutils whatis _man service _service mysqlimport _mysql_utils xwininfo _x_utils xwd _x_utils -value-,P4PORT,-default- _perforce modprobe _modutils ypxfr _yp slitex _tex fixmacps _psutils ncftp _ncftp phoenix _webbrowser rwho _hosts aptitude _aptitude dmake _make dviselect _dvi xkill _x_utils hash _hash www _webbrowser gmake _make texindex _texinfo rmic _java lynx _lynx -tilde- _tilde rmid _java module-assistant _module-assistant -command-line- _normal pmake _make debchange _debchange cygcheck.exe _cygcheck putclip.exe _putclip zcat _zcat lsof _lsof look _look unzip _zip renice _renice mhmail _mh -subscript- _subscript bison _bison rtin _tin pflags _pids host _hosts lsdev _lsdev remsh _rlogin netcat _netcat querybts _bug txt _hosts dosread _floppy pdftotext _pdf lzop _lzop odme _object_classes dupload _dupload podtoc _perl_modules delta _sccs btshowmetainfo _bittorrent tkinfo _texinfo infocmp _terminals lscfg _lscfg xrdb _x_utils declare _typeset -value-,P4CLIENT,-default- _perforce xpdf _xpdf -equal- _equal oggenc _vorbis dcopstart _dcop wget _wget refile _mh defaults _defaults chflags _chflags ghostscript _gs dosdel _floppy pmls _perl_modules smit _smit makepkg _pkgtool ptree _pids noglob _precommand gzilla _webbrowser lspv _lspv useradd _user_admin pmfunc _perl_modules -value-,VALGRIND_OPTS,-default- _valgrind pdf2ps _pdf cygpath _cygpath raggle _raggle chgrp _chown -value- _value where _which gsdj500 _pspdf fixdlsrps _psutils mysqladmin _mysql_utils cygcheck _cygcheck xset _xset bunzip2 _bzip2 telnet _telnet pine _pine -value-,-default-,-default- _value ping _hosts grail _webbrowser userdel _users bzcat _bzip2 ifup _net_interfaces pkg_delete _bsd_pkg gzcat _gzip lprm _lp uniq _uniq gphoto2 _gphoto2 jadetex _tex cdrecord _cdrecord mere _mere mark _mh groupmod _user_admin pdfopt _pdf psmulti _ps folders _mh podgrep _perl_modules xview _xloadimage ogg123 _vorbis iptables _iptables last _last xhost _x_utils less _less zmodload _zmodload yppasswd _yp pmdesc _perl_modules gunzip _gzip rmmod _modutils ghostview _pspdf cygstart.exe _cygstart arping _arping fixscribeps _psutils java _java smbcontrol _samba -value-,DISPLAY,-default- _x_display pstack _pids zxpdf _xpdf talk _other_accounts fetchmail _fetchmail findaffix _ispell popd _directory_stack ulimit _ulimit wait _wait xmodmap _xmodmap lftp _ncftp combine _imagemagick kfmclient _kfmclient mush _mail fixwfwps _psutils kldunload _kld )
_lastcomp=(prefix Walls unambiguous_cursor 6 nmatches 3 list_lines 1 list_max 100 isuffix '' iprefix '' exact_string Walls all_quotes '\' completer complete to_end match unambiguous_positions 5 restore auto tags ' all-files ' insert automenu-unambiguous last_prompt yes exact '' qisuffix '' qiprefix '' ignored 0 pattern_insert menu insert_positions 11 list ambiguous vared '' context command suffix '' unambiguous Walls )
_patcomps=('*/(init|rc[0-9S]#).d/*' _init_d 'zf*' _zftp )
_postpatcomps=('(p[bgpn]m*|*top[bgpn]m)' _pbm '*/X11(|R[456])/*' _x_arguments '-value-,*path,-default-' _directories '-value-,LC_*,-default-' _locales '-value-,*PATH,-default-' _dir_list '(tiff*|*2tiff|pal2rgb)' _tiff 'yodl(|2*)' _yodl '(texi(2*|ndex))' _texi )
_services=(ncl nc '-redirect-,<,compress' compress dch debchange svnadmin-static svnadmin '-redirect-,<,gunzip' gunzip '-redirect-,<,bunzip2' bunzip2 slogin ssh '-redirect-,>,gzip' gunzip '-redirect-,<,bzip2' bzip2 pcat unpack Mail mail '-redirect-,>,bzip2' bunzip2 nail mail '-redirect-,<,gzip' gzip remsh rsh bzcat bunzip2 mailx mail '-redirect-,>,compress' uncompress '-redirect-,<,uncompress' uncompress gzcat gunzip nedit-nc nc )
aliases
argv=()
builtins
cdpath=()
commands
comppostfuncs=()
compprefuncs=()
dirstack
dis_aliases
dis_builtins
dis_functions
dis_galiases
dis_reswords
dis_saliases
fignore=()
fpath=(/usr/local/share/zsh/site-functions /usr/share/zsh/4.2.5/functions/Completion /usr/share/zsh/4.2.5/functions/Completion/AIX /usr/share/zsh/4.2.5/functions/Completion/BSD /usr/share/zsh/4.2.5/functions/Completion/Base /usr/share/zsh/4.2.5/functions/Completion/Cygwin /usr/share/zsh/4.2.5/functions/Completion/Darwin /usr/share/zsh/4.2.5/functions/Completion/Debian /usr/share/zsh/4.2.5/functions/Completion/Linux /usr/share/zsh/4.2.5/functions/Completion/Mandrake /usr/share/zsh/4.2.5/functions/Completion/Redhat /usr/share/zsh/4.2.5/functions/Completion/Unix /usr/share/zsh/4.2.5/functions/Completion/X /usr/share/zsh/4.2.5/functions/Completion/Zsh /usr/share/zsh/4.2.5/functions/MIME /usr/share/zsh/4.2.5/functions/Misc /usr/share/zsh/4.2.5/functions/Prompts /usr/share/zsh/4.2.5/functions/TCP /usr/share/zsh/4.2.5/functions/Zftp /usr/share/zsh/4.2.5/functions/Zle)
funcstack
functions
galiases
histchars='!^#'
history
historywords
jobdirs
jobstates
jobtexts
keymaps
mailpath=()
manpath=()
mbegin=(1)
mend=(1)
module_path=(/usr/lib/zsh/4.2.5)
modules
nameddirs
options
parameters
path=(/usr/local/bin /usr/bin /bin /usr/X11R6/bin /usr/games)
pipestatus=(0)
prompt='[%B%*%b]@%B%/%b%# '
psvar=()
reswords
saliases
signals=(EXIT HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS ZERR DEBUG)
status=0
termcap
terminfo
userdirs
watch=()
widgets

dotdotno ou Phlogistique sur IRC
Jabber : noe.rubinstein CHEZ fritalk.com

Hors ligne

#3 Le 09/03/2006, à 02:21

lunique

Re : la sous commande set sous bash-ubuntu

Comme dirait mon trés admiré prof d'Unix a la doua : "il ne faut pas confondre les built-in et les programmes. Vous trouverez de l'aide pour les built-in avec la commande

help lenomdelacommande

"
Donc en l'occurance, un "help set" et t'obtiendra :

set: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
        -a  Mark variables which are modified or created for export.
        -b  Notify of job termination immediately.
        -e  Exit immediately if a command exits with a non-zero status.
        -f  Disable file name generation (globbing).
        -h  Remember the location of commands as they are looked up.
        -k  All assignment arguments are placed in the environment for a
            command, not just those that precede the command name.
        -m  Job control is enabled.
        -n  Read commands but do not execute them.
        -o option-name
            Set the variable corresponding to option-name:
                allexport    same as -a
                braceexpand  same as -B
                emacs        use an emacs-style line editing interface
                errexit      same as -e
                errtrace     same as -E
                functrace    same as -T
                hashall      same as -h
                histexpand   same as -H
                history      enable command history
                ignoreeof    the shell will not exit upon reading EOF
                interactive-comments
                             allow comments to appear in interactive commands
                keyword      same as -k
                monitor      same as -m
                noclobber    same as -C
                noexec       same as -n
                noglob       same as -f
                nolog        currently accepted but ignored
                notify       same as -b
                nounset      same as -u
                onecmd       same as -t
                physical     same as -P
                pipefail     the return value of a pipeline is the status of
                             the last command to exit with a non-zero status,
                             or zero if no command exited with a non-zero status
                posix        change the behavior of bash where the default
                             operation differs from the 1003.2 standard to
                             match the standard
                privileged   same as -p
                verbose      same as -v
                vi           use a vi-style line editing interface
                xtrace       same as -x
       -p  Turned on whenever the real and effective user ids do not match.
            Disables processing of the $ENV file and importing of shell
            functions.  Turning this option off causes the effective uid and
            gid to be set to the real uid and gid.
        -t  Exit after reading and executing one command.
        -u  Treat unset variables as an error when substituting.
        -v  Print shell input lines as they are read.
        -x  Print commands and their arguments as they are executed.
        -B  the shell will perform brace expansion
        -C  If set, disallow existing regular files to be overwritten
            by redirection of output.
        -E  If set, the ERR trap is inherited by shell functions.
        -H  Enable ! style history substitution.  This flag is on
            by default.
        -P  If set, do not follow symbolic links when executing commands
            such as cd which change the current directory.
        -T  If set, the DEBUG trap is inherited by shell functions.
   
    Using + rather than - causes these flags to be turned off.  The
    flags can also be used upon invocation of the shell.  The current
    set of flags may be found in $-.  The remaining n ARGs are positional
    parameters and are assigned, in order, to $1, $2, .. $n.  If no
    ARGs are given, all shell variables are printed.

On doit pouvoir trouver une version francaise sur le net, mais d'apres le meme prof, vaut mieu eviter les traductions (en meme temps, quand je vois que sur le "chauffe-gauffre" de mes parent, en anglais il est indique que c'est cuit quand cc'est rouge, et en francais, qu'il faut mettre la patte quand la lumiere est rouge...)

edit : Tu ne trouvera pas de paquet pour set car c'est une built-in : pour ce que j'en ai compris, c'est integré à l'interpreteur de commande, sous ubuntu, c'est bash par defaut

Dernière modification par lunique (Le 09/03/2006, à 02:23)

Hors ligne

#4 Le 09/03/2006, à 02:24

gene69

Re : la sous commande set sous bash-ubuntu

Vive les lyonnais c'est les meilleurs.
(non je ne parle pas de foot)


Quand le berger est lâche, le loup chie de la laine.
A (draft) guide to UFO Alien-Invasion

Hors ligne

#5 Le 09/03/2006, à 02:44

yarel

Re : la sous commande set sous bash-ubuntu


vivez libre... pensez libre...
installez GNU / LINUX
yarel contrib

Hors ligne

#6 Le 28/04/2007, à 17:28

TatSou-Max

Re : la sous commande set sous bash-ubuntu

Bonjour,

Moi je cherche à afficher l'ensemble des variables définies dans mon environnement.
J'ai essayé en tapant set -k, set -x... mais le bash ne me renvoie aucune réponse. Pourquoi ?

Hors ligne

#7 Le 28/04/2007, à 17:51

kaworu

Re : la sous commande set sous bash-ubuntu

Salut !
Pour savoir si une commande est un built-in ou un programme, voir la commande type :

alex@gentoo ~ $ type cd
cd is a shell builtin
alex@gentoo ~ $ type pwd
pwd is a shell builtin
alex@gentoo ~ $ type type
type is a shell builtin
alex@gentoo ~ $ type rm
rm is /bin/rm
alex@gentoo ~ $ type cp
cp is /bin/cp

pour voir les variables d'environnement :

env

"There are in order of increasing severity: lies, damn lies, statistics, and computer benchmarks."

Hors ligne

#8 Le 28/04/2007, à 18:45

TatSou-Max

Re : la sous commande set sous bash-ubuntu

Ralala, c'était si bête !

Dire que j'ai tapé des setenv, set-env...
en tout cas merci.

sinon lorsque je tape type set j'ai ça:

set est un composant de terminal

Hors ligne