Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Back-ticks and bash

by shmem (Chancellor)
on Oct 08, 2016 at 20:04 UTC ( [id://1173551]=note: print w/replies, xml ) Need Help??


in reply to Back-ticks and bash

And bash isn't what is interpreting the script?

Yes. Init scripts are always interpreted by /bin/sh, even if the default $SHELL is /bin/bash.

qwurx [shmem] ~> /bin/bash -c 'if [[ 1 -eq 1 ]]; then echo yup; fi' yup qwurx [shmem] ~> /bin/sh -c 'if [[ 1 -eq 1 ]]; then echo yup; fi' /bin/sh: 1: [[: not found

update: not sure what might befall within the systemd usurpation... *sigh*

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1173551]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found