bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #44507, parallel is using the SHELL env...

 
 

bug #44507: parallel is using the SHELL env variable

Submitted by:  None
Submitted on:  Wed 11 Mar 2015 02:15:52 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 22 Mar 2015 04:19:11 PM UTC, comment #1:

Duplicate of https://savannah.gnu.org/bugs/index.php?42913
So it is already fixed.

Ole Tange <tange>
Project Administrator
Wed 11 Mar 2015 02:15:52 PM UTC, original submission:

Hi there,

GNU parallel is using the SHELL env variable to fork a shell, to execute what the used asked, and I can understand that, BUT, as far as I see it, it may be a bad idea:

- Some uses may use non standard shells (fish, ... ?)
- Some user may use something else than a shell, like a completly other program)

I'm in the case where the SHELL of my user is a shell script doing a task, so my users can log on this account to execute (and interact a bit) with the task, it permit me to control who access this service using ssh keys, etc, like git shell for example.

My shell script is using parallel, and parallel, instead of using /bin/sh used my SHELL environment variable, entering a kind of fork bomb state.

I exported SHELL=/bin/sh to avoid this problem, but I really think that you may not use $SHELL but /bin/sh instead.

This is more a conversation than a bug, parallel may have good reason to use the shell, at first, I didn't even knew that it forked a shell, I though it worked like xargs, forking directly the given program.

Bests,

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 22 Mar 2015 04:19:11 PM UTCtangeStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1