[Bug 381816] Re: checkbashisms doesn't recognize 'source' command as a bashism

Benjamin Drung bdrung at debian.org
Mon Apr 16 21:42:09 UTC 2012


source is recognized in Ubuntu 12.04 (precise):

$ cat bashisms/source 
#!/bin/sh
source foo.sh
$ checkbashisms bashisms/source 
possible bashism in bashisms/source line 2 (should be '.', not 'source'):
source foo.sh

** Changed in: devscripts (Ubuntu)
       Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to devscripts in Ubuntu.
https://bugs.launchpad.net/bugs/381816

Title:
  checkbashisms doesn't recognize 'source' command as a bashism

Status in “devscripts” package in Ubuntu:
  Fix Released

Bug description:
  'source foo.sh' in a shell scripts (#!/bin/sh). I often use
  checkbashisms as a first step in identifying problems for portability
  purposes. checkbashisms didn't notice this, until I ran it on
  OpenSolaris, where it failed massively.

  austin at midna:~/bordeaux$ checkbashisms -v
  This is checkbashisms, from the Debian devscripts package, version 2.10.48ubuntu1~jaunty1
  This code is copyright 2003 by Julian Gilbey <jdg at debian.org>,
  based on original code which is copyright 1998 by Richard Braakman
  and copyright 2002 by Josip Rodin.
  This program comes with ABSOLUTELY NO WARRANTY.
  You are free to redistribute this code under the terms of the
  GNU General Public License, version 2, or (at your option) any later version.

  
  Running jaunty 64-bit.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/devscripts/+bug/381816/+subscriptions




More information about the foundations-bugs mailing list