[Slackbuilds-users] Useful Aliases

Alan Hicks alan at barnowl.lizella.net
Sun Mar 25 19:41:10 UTC 2007

On Sun, Mar 25, 2007 at 01:22:48PM -0500, alkos333 wrote:
> I found myself typing long command sequences every time I needed to download
> a source package, or check md5 of a package, so decided to define the
> following aliases:
> alias sb_dl='wget `grep ^D *.info | cut -d= -f2`'
> alias sb_chk='[ `grep ^M *.info | cut -d= -f2` = `md5sum *.tar.* | cut -c
> -32` ]; echo $?'
> In the second alias, I'm concerned with the "*.tar.*" part, which will fail
> in case other patches or third party packages were included in the
> SlackBuild like here:
> http://www.slackbuilds.org/repository/multimedia/MPlayer/
> One solution could be to use a name of the current pwd or use a value of
> PRGNAM variable defined in *.info.
> Any suggestions will be greatly appreciated!

Don't do this.  The problem is that you may run into a URL that maybe
looks something like this (do not enter this on your shell as I haven't
tested to make sure it's safe):


This is something that we've talked about on the development mailing
list but just haven't gotten around to fixing yet.  The idea is to
quote the variables so that it would be safe to source the .info file
right into your shell.

It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5

More information about the Slackbuilds-users mailing list