Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Bash 5.2. Parent comment
When not in POSIX mode, aliases are only expanded for interactive use.
$ echo '#!/bin/sh \n alias p=printf \n p %s\\\\n "hello world!"' > ok.sh $ chmod 755 ok.sh $ ./ok.sh hello world! $ echo '#!/bin/bash \n alias p=printf \n p %s\\\\n "hello world!"' > nope.sh $ chmod 755 nope.sh $ ./nope.sh ./nope.sh: line 3: p: command not found
There are no comments on this comment yet.
When not in POSIX mode, aliases are only expanded for interactive use.