Le dimanche 18 avril 2010 à 21:20 +0200, Stevan Bajić a écrit : > On Sun, 18 Apr 2010 21:06:54 +0200 > Julien Valroff <jul...@kirya.net> wrote: > > > Le dimanche 18 avril 2010 à 20:52 +0200, Stevan Bajić a écrit : > > > On Sun, 18 Apr 2010 20:42:03 +0200 > > > Julien Valroff <jul...@kirya.net> wrote: > > > > > > > Le dimanche 18 avril 2010 à 20:24 +0200, Stevan Bajić a écrit : > > > > [...] > > > > > Can I ask you one thing regarding Debian? Is the Bash shell installed > > > > > by default on Debian? I plan to switch from /bin/sh to /bin/bash. The > > > > > reason for that is that /bin/sh on FreeBSD is a shell like csh or ksh > > > > > and I am not really interested in porting the whole script to be > > > > > runnable under csh or ksh. I never really planed/expected to be able > > > > > to have that little script to be runnable on anything other then > > > > > Gentoo. Anyway... if I would ever redo that script then I would code > > > > > it in Perl. Allone those differences in GNU sed and the one installed > > > > > on FreeBSD is frustating. Let allone the other differences. With Perl > > > > > I would not have those problems. Anyway... I have changed the script > > > > > to cope with those limits I have seen on FreeBSD 6.2-RELEASE by using > > > > > 'tr' instead of sed in some situations. I have still not commited > > > > > those changes to GIT. I wait till you tell me that Debian has Bash > > > > > installed by default. > > > > > > > > Yes, bash is installed by default on Debian: > > > > $ apt-cache show bash > > > > Package: bash > > > > Essential: yes > > > > Priority: required > > > > <...> > > > > > > > > dash is now the default shell as it is lighter and scripts are hence > > > > running faster than with bash (eg. init scripts): > > > > $ ls -l /bin/sh > > > > lrwxrwxrwx 1 root root 4 17 sept. 2009 /bin/sh -> dash > > > > > > > > bash is still (and I think it will remain) the default interactive > > > > shell, hence is installed on all Debian hosts. > > > > > > > Another question. What about those tools: > > > * awk > > > * cut > > > * sed > > > * sort > > > * strings > > > * tr > > > * grep > > > > All except strings are installed by default. > > > Okay. Thanks for clarification. > > > > strings is in binutils which is optional, and is in the development > > category (though some packages not in this category depends on it, that > > is not a problem). > > > > cut, sort, tr are in the coreutils package (Essential: yes) > > > > base-files (Essential: yes) pre-depends on awk (which is a virtual > > package, and can hence be gawk, mawk or original-awk) > > > The binaries are then called either: > * gawk > * mawk > * awk > > Right? Are there any symlinks to awk (in case of gawk, mawk)?
Yes, Debian has a system called alternatives, each package providing awk is registered through this system, with different "priorities". Here is an article on debian-administration.org about this system: http://www.debian-administration.org/articles/91 In my case (ie. the default case), awk is an indirect symlink to mawk: $ ls -l /usr/bin/awk lrwxrwxrwx 1 root root 21 28 févr. 18:15 /usr/bin/awk -> /etc/alternatives/awk $ ls -l /etc/alternatives/awk awk awk.1.gz $ ls -l /etc/alternatives/awk lrwxrwxrwx 1 root root 13 28 févr. 18:15 /etc/alternatives/awk -> /usr/bin/mawk If I install gawk, then awk is an indirect symlink to gawk (gawk having a higher priority than mawk): $ update-alternatives --list awk /usr/bin/gawk /usr/bin/mawk $ LANG=C update-alternatives --display awk awk - auto mode link currently points to /usr/bin/gawk /usr/bin/gawk - priority 10 slave awk.1.gz: /usr/share/man/man1/gawk.1.gz slave nawk: /usr/bin/gawk slave nawk.1.gz: /usr/share/man/man1/gawk.1.gz /usr/bin/mawk - priority 5 slave awk.1.gz: /usr/share/man/man1/mawk.1.gz slave nawk: /usr/bin/mawk slave nawk.1.gz: /usr/share/man/man1/mawk.1.gz Current `best' version is /usr/bin/gawk. Cheers, Julien ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel