[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: broken shell script with dash

Andrew McGlashan wrote the following on 28.03.2011 19:05

> Hi,
> Thilo Six wrote:
>> Michael P. Soulier wrote the following on 28.03.2011 16:10
>>> cat /etc/aliases.{1,2} > /etc/aliases
>> $ ./checkbashisms fooo.sh
>> possible bashism in fooo.sh line 2 (brace expansion):
>> cat /etc/aliases.{1,2} > /etc/aliases
>> checkbashisms is in devscripts but i would not advocate to install the hole
>> beast. Just download the .deb and extract it.
> Why, we are not running on zx80, trs-80, apple ][, vic20 or anything 
> like that these days; disk is cheap and a few extra MBs isn't going to 
> hurt anything today.
> The WHOLE package is worth how many bytes?  The installed size for the 
> squeeze version is under 2MB, unless you need the ia64 version which is 
> closer to 4MB [1].  What's the big deal?  I don't think it's worth the 
> effort of extracting it from the .deb file.  Heck, I'm not even so sure 
> this email is worth the effort ;-)
> [1] http://packages.debian.org/squeeze/devscripts

# aptitude install devscripts
The following NEW packages will be installed:
  autopoint{a} [] (for devscripts)
  build-essential{a} [11.5] (for devscripts)
  debhelper{a} [8.0.0] (for devscripts)
  debian-keyring{a} [2010.12.29] (for devscripts)
  devscripts [2.10.69+squeeze1]  dpkg-dev{a} [] (for devscripts)
  dput{a} [] (for devscripts)  equivs{a} [2.0.8] (for devscripts)
  fakeroot{a} [1.14.4-1] (for devscripts)
  g++{a} [4:4.4.5-1] (for devscripts)
  g++-4.4{a} [4.4.5-8] (for devscripts)
  gettext{a} [] (for devscripts)
  git{a} [1:] (for etckeeper)
  html2text{a} [1.3.2a-15] (for devscripts)
  intltool-debian{a} [0.35.0+20060710.1] (for devscripts)
  libalgorithm-diff-perl{a} [1.19.02-2] (for devscripts)
  libalgorithm-diff-xs-perl{a} [0.04-1] (for devscripts)
  libalgorithm-merge-perl{a} [0.08-2] (for devscripts)
  libauthen-sasl-perl{a} [2.1500-1] (for devscripts)
  libclass-inspector-perl{a} [1.24-1] (for devscripts)
  libcommon-sense-perl{a} [3.3-1] (for devscripts)
  libconvert-binhex-perl{a} [1.119+pristine-3] (for devscripts)
  libdevel-symdump-perl{a} [2.08-3] (for devscripts)
  liberror-perl{a} [0.17-1] (for etckeeper)
  libfcgi-perl{a} [0.71-1] (for devscripts)
  libio-pty-perl{a} [1:1.08-1] (for devscripts)
  libio-stringy-perl{a} [2.110-4] (for devscripts)
  libipc-run-perl{a} [0.89-1] (for devscripts)
  libjson-perl{a} [2.21-1] (for devscripts)
  libjson-xs-perl{a} [2.290-1] (for devscripts)
  libmail-sendmail-perl{a} [0.79.16-1] (for devscripts)
  libmime-tools-perl{a} [5.428-1] (for devscripts)
  libossp-uuid-perl{a} [1.6.2-1] (for devscripts)
  libparse-debcontrol-perl{a} [2.005-2] (for devscripts)
  libpod-coverage-perl{a} [0.21-1] (for devscripts)
  libsoap-lite-perl{a} [0.712-2] (for devscripts)
  libstdc++6-4.4-dev{a} [4.4.5-8] (for devscripts)
  libsys-hostname-long-perl{a} [1.4-2] (for devscripts)
  libtask-weaken-perl{a} [1.03-1] (for devscripts)
  libterm-size-perl{a} [0.2-4+b1] (for devscripts)
  libtest-pod-perl{a} [1.42-1] (for devscripts)
  libtie-ixhash-perl{a} [1.21-2] (for devscripts)
  libunistring0{a} [0.9.3-3] (for devscripts)
  libyaml-syck-perl{a} [1.12-1] (for devscripts)
  lintian{a} [2.4.3] (for devscripts)  make{a} [3.81-8] (for devscripts)
  po-debconf{a} [1.0.16+nmu1] (for devscripts)
  strace{a} [4.5.20-2] (for devscripts)
0 packages upgraded, 48 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/51,6 MB of archives. After unpacking 94,4 MB will be used.
Do you want to continue? [Y/n/?]

bye Thilo

721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F

Reply to: