bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #52534, Tail of multiline alias is ignored

 
 

bug #52534: Tail of multiline alias is ignored

Submitted by:  Ole Tange <tange>
Submitted on:  Mon 27 Nov 2017 05:58:24 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 28 Nov 2017 11:39:32 PM UTC, comment #2:

Maybe better to simply warn in env_parallel.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Tue 28 Nov 2017 11:27:00 PM UTC, comment #1:

Can be fixed by adding:

$command .= "\n\n";

in wrapped(). Unfortunately this causes a lot of side effects.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 27 Nov 2017 05:58:24 PM UTC, original submission:

https://unix.stackexchange.com/questions/406674/bash-why-is-alias-after-newline-ignored-when-run-remotely

In Bash

bash -c "shopt -s expand_aliases &>/dev/null;
alias myalias='echo foo
echo bar
echo baz'
myalias"

Ole Tange <tange>
Project AdministratorIn charge of this item.

 

(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 (Submitted the item)
  •  

    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
    Tue 28 Nov 2017 11:27:00 PM UTCtangeStatusNone=>Confirmed
      Assigned toNone=>tange

    Back to the top


    Powered by Savane 3.1-cleanup1