Bash scripts fail because they point to /bin/sh

Bug #55876 reported by Scott Zawalski
2
Affects Status Importance Assigned to Milestone
aircrack-ng (Debian)
Fix Released
Unknown
aircrack-ng (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: aircrack-ng

The scripts distributed with this package need to be updated to point to /bin/bash since dash doesn't work correctly with these scripts.

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

I don't understand do you mean that:
* The scripts point to a non-existing /bin/sh ?
or:
* The scripts point to /bin/sh that does exist, but it won't correctly with /bin/sh , yet it would work correctly with /bin/bash ?

Revision history for this message
Scott Zawalski (cowbud) wrote :

No I think it is pretty clear.
/bin/sh was changed to reference /bin/dash.

Well dash doesn't cover all of bashes functions and therefore scripts break. Much like this one.

If the link in the file is changed to /bin/bash instead of /bin/sh it will function properly.

Revision history for this message
Jean-Philippe (skateinmars) wrote :

I don't know exactly if this is related, but airmon-sh does not work here.

The reported error is :

"/usr/sbin/airmon-ng: 16: Syntax error: "(" unexpected"

Maybe this is related to the use of dash instead of bash. If not I could file another bug.

Revision history for this message
Scott Zawalski (cowbud) wrote :

No need to file another bug that is the exact issue. If you change your scripts to point to /bin/bash they will work fine.

Scott

Steve Kowalik (stevenk)
Changed in aircrack-ng:
status: Unconfirmed → Confirmed
Changed in aircrack-ng:
status: Unknown → Unconfirmed
Changed in aircrack-ng:
status: Unconfirmed → Fix Released
Revision history for this message
Steve Kowalik (stevenk) wrote :

aircrack-ng (0.6-1ubuntu1) edgy; urgency=low

  * Switch airmon-ng to using /bin/bash. (Malone: #55876)

 -- Steve Kowalik <email address hidden> Wed, 4 Oct 2006 23:14:36 +1000

Changed in aircrack-ng:
status: Confirmed → Fix Released
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.