[Wien] WIEN2k Version 19.1

Laurence Marks laurence.marks at gmail.com
Sun Jun 16 15:51:14 CEST 2019


I strongly suggest the loop. In general use, the length of some of the
variables could be too large even for tcsh. I don't think it is robust to
assume that, for instance, $ELPA is /opt/elpa when it could be a 200+
character long "Some Disk"/"Some Partition"/"Some UserName"/elpa etc.
(Let's assume no DOS with spaces in names.)

_____
Professor Laurence Marks
"Research is to see what everybody else has seen, and to think what nobody
else has thought", Albert Szent-Gyorgi
www.numis.northwestern.edu

On Sun, Jun 16, 2019, 14:45 Gavin Abo <gsabo at crimson.ua.edu> wrote:

> The sed works fine and is not a problem.  The only problem with the script
> is with: alias update_makefiles 'string'
>
> It's just that the string part is too long for csh [
> https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg16028.html
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_msg16028.html&d=DwMDaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=nFbd09RFh4cBjsVp8OnKpBBC6Sj90JhsMXuR_U8ZCyU&s=WTSDiGuUygWiGRThJYSzNLMFqq08pcrH39xw6VyTlw0&e=>
> ].
>
> Which is why if you shorten the string, for example split it into two
> alias (like update_makefiles01 and update_makefiles02), then the script
> works fine:
>
> https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18738.html
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_msg18738.html&d=DwMDaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=nFbd09RFh4cBjsVp8OnKpBBC6Sj90JhsMXuR_U8ZCyU&s=1PTPDkxObDMGdd4CoZOX8arwbGxGhDxyvBXqCfdPod4&e=>
>
> https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18731.html
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_msg18731.html&d=DwMDaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=nFbd09RFh4cBjsVp8OnKpBBC6Sj90JhsMXuR_U8ZCyU&s=wT5w05MEC0f9j3eWhmyKFxXeEDJMAKyjx9Yw_IUvI2g&e=>
>
> Note: The for loop pseudo code in msg18738 I realize I have a mistake were
> multiple substitutions likely would have to be worked out too [
> https://unix.stackexchange.com/questions/68042/double-and-triple-substitution-in-bash-and-zsh
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__unix.stackexchange.com_questions_68042_double-2Dand-2Dtriple-2Dsubstitution-2Din-2Dbash-2Dand-2Dzsh&d=DwMDaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=nFbd09RFh4cBjsVp8OnKpBBC6Sj90JhsMXuR_U8ZCyU&s=RmPEyiD0HNjONfo-94jenjNpOdTxtm1xBtERTlx93Ns&e=>
> ].
>
> Or tcsh could be used that has a larger maximum length for the string:
>
> https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18730.html
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_msg18730.html&d=DwMDaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=nFbd09RFh4cBjsVp8OnKpBBC6Sj90JhsMXuR_U8ZCyU&s=x9bj7ohdmZQ0AapEazk3GnvUEV3hL3s_ihcdBEOkYrU&e=>
>
>
> On 6/16/2019 2:52 AM, pboulet wrote:
>
> Hello all,
>
> If I understand correctly, sed is the main problem. So, isn’t there an
> alternative to sed? (e.g. awk, perl, python,…).
>
> Best regards,
> Pascal
>
>
>
> Pascal Boulet
>> *Professor in computational chemistry - DEPARTMENT OF CHEMISTRY*
> Aix-Marseille University - Avenue Escadrille Normandie Niemen - F-13013
> Marseille - FRANCE
> Tél: +33(0)4 13 55 18 10 - Fax : +33(0)4 13 55 18 50
> Email : pascal.boulet at univ-amu.fr
>
>
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__zeus.theochem.tuwien.ac.at_mailman_listinfo_wien&d=DwICAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=nFbd09RFh4cBjsVp8OnKpBBC6Sj90JhsMXuR_U8ZCyU&s=SCKqSH2Wl7gOqMMaGbqW-bTTRbZI8iq_Dhd96gkoZK0&e=
> SEARCH the MAILING-LIST at:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_index.html&d=DwICAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=nFbd09RFh4cBjsVp8OnKpBBC6Sj90JhsMXuR_U8ZCyU&s=TscmYOmYOc8SSvKcz2lWDYc5T6YzihvHFV6hO2WwWFM&e=
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20190616/e0cda21f/attachment.html>


More information about the Wien mailing list