Skip to content

Instantly share code, notes, and snippets.

@dgolden1
Last active Aug 29, 2015
Embed
What would you like to do?
no job control bug

See http://stackoverflow.com/questions/27805096/wget-and-bash-error-bash-line-0-fg-no-job-control

Command:

export PS4='+($?) $BASH_SOURCE:$FUNCNAME:$LINENO:'
echo "wget --no-check-certificate --no-verbose -O a-very-long-folder-de090952623b4865c2c34bd6330f8a423ed05ed8de090952623b4865c2c34bd6330f8a423ed05ed8de090952623b4865c2c34bd6330f8a423ed05ed8/blah.jpg http://d4u3lqifjlxra.cloudfront.net/uploads/example/file/48/accordion.jpg" | xargs -J % bash -x -c %

Output:

+(0) ::0:wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

Command:

export PS4='+($?) $BASH_SOURCE:$FUNCNAME:$LINENO:'
echo "wget --no-check-certificate --no-verbose -O a-very-long-folder-de090952623b4865c2c34bd6330f8a423ed05ed8de090952623b4865c2c34bd6330f8a423ed05ed8de090952623b4865c2c34bd6330f8a423ed05ed8/blah.jpg http://d4u3lqifjlxra.cloudfront.net/uploads/example/file/48/accordion.jpg" | xargs -I % bash -x -c %

Output:

+(0) ::0:%
bash: line 0: fg: no job control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment