startsqueak can be improved

Bug #38074 reported by Damien Cassou
6
Affects Status Importance Assigned to Milestone
squeak-vm (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

startsqueak is very good and a great idea. However the script can be improved a little. This are just ideas, feel free to close this bug if you don't like them.

Revision history for this message
Damien Cassou (cassou) wrote : -z instead of '! -n'

'-n' is true if string is not empty. Not not empty means empty so I replaced '! -n' by '-z'.

Revision history for this message
Damien Cassou (cassou) wrote :

Why not using ~/.squeak/ instead of ~/squeak/ ? Dotted files are more common for this sort of directories ?

Revision history for this message
Damien Cassou (cassou) wrote : Special bash construct

Here I used ${parameter:-word} which is replaced by 'parameter' if paramater is non null and non empty or by word on the other case.

Revision history for this message
Damien Cassou (cassou) wrote : sourcefiles handling seems wrong

In your version, it seems one test if always true :

 for sourcef in $IMAGE_DIR/*.sources
 do
   locname=`basename $sourcef`
   if [ ! -f $locname ]
   then

$locname is just a filename without directory: you can't test for its existance because you don't know in which directory your script is executing.

Moreover, I replaced '-f' with '-e' because it is more general (a link answer false to '-f' and we are waiting for link files).

Revision history for this message
LaserJock (laserjock) wrote :

Thanks for all these patches. I will see if startsqueak can be merged into the Debian packages.

Changed in squeak-vm:
status: New → Triaged
Revision history for this message
Markus Schlager (m-slg) wrote :

Why is startsqueak missing in hardy?

Revision history for this message
Luke Faraone (lfaraone) wrote :

This bug no longer affects lucid, as startsqueak has been replaced with squeak.

Changed in squeak-vm (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.